yarnpkg/yarn

Yarn Link doesn't support path to match npm

Open

#1,100 建立於 2016年10月15日

在 GitHub 查看
 (2 留言) (5 反應) (0 負責人)JavaScript (41,514 star) (2,731 fork)batch import
cat-featurehelp wantedneeds-discussiontriaged

描述

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

kstone@kstone-mbp $PWD> yarn link .
yarn link v0.15.1
error Couldn't find a package.json (or bower.json) file in $HOME/.yarn-cache/.link
[...]
kstone@kstone-mbp $PWD> yarn link 
yarn link v0.15.1
success Registered "$PKG".
info You can now run `yarn link "$PKG"` in the projects where you want to use this module and it will be used instead.
✨  Done in 0.06s.

If the current behavior is a bug, please provide the steps to reproduce.

See above.

What is the expected behavior?

kstone@kstone-mbp $PWD> npm link .
[...]
/usr/local/lib/node_modules/$PKG -> $PWD

Please mention your node.js, yarn and operating system version.

kstone@kstone-mbp $PWD> node --version
v6.8.1
kstone@kstone-mbp $PWD> yarn --version
0.15.1
kstone@kstone-mbp $PWD> sw_vers 
ProductName:    Mac OS X
ProductVersion: 10.12
BuildVersion:   16A319

貢獻者指南

Yarn Link doesn't support path to match npm · yarnpkg/yarn#1100 | Good First Issue