yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.44k stars 2.72k forks source link

Yarn doesn't create node package's bin symlink in node_modules/.bin #7190

Open dvlemplgk opened 5 years ago

dvlemplgk commented 5 years ago

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

What is the current behavior? When yarn installs node the symlink node_modules/.bin/node to the installed node binary is missing.

If the current behavior is a bug, please provide the steps to reproduce. Test/node> ls -l total 0

Test/node> npx yarn add node npx: installed 1 in 0.759s yarn add v1.15.2 info No lockfile found. [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... success Saved lockfile. success Saved 2 new dependencies. info Direct dependencies └─ node@11.13.0 info All dependencies ├─ node-bin-setup@1.0.6 └─ node@11.13.0 Done in 1.17s.

Test/node> ls -l node_modules/.bin/ total 0

What is the expected behavior? as in using npm instead of yarn the symlink should be installed:

Test/node> ls -l total 0 Test/node> echo "{}" >package.json Test/node> npm install node --save

node@11.13.0 preinstall /home/gke/Test/node/node_modules/node node installArchSpecificPackage

npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN node No description npm WARN node No repository field. npm WARN node No license field.

Test/node> ls -l node_modules/.bin/ total 0 lrwxrwxrwx 1 gke users 16 Apr 11 09:59 node -> ../node/bin/node

Please mention your node.js, yarn and operating system version. Test/node> node -v v8.15.0 Test/node> npm -v 6.4.1 Test/node> npx yarn -v npx: installed 1 in 0.754s 1.15.2

OS: x86_64 opensuse 13.1 or opensuse tumbleweed, actually it doesn't matter.

dvlemplgk commented 5 years ago

ping! is this project dead? Or do you ignore issues on purpose?