yarnpkg/yarn

Yarn Link doesn't support path to match npm

Open

#1,100 opened on Oct 15, 2016

View on GitHub
 (2 comments) (5 reactions) (0 assignees)JavaScript (41,514 stars) (2,731 forks)batch import
cat-featurehelp wantedneeds-discussiontriaged

Description

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

Contributor guide