-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Bugthing that needs fixingthing that needs fixingPriority 1high priority issuehigh priority issueRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release
Description
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
Current Behavior
After upgrading my project from v6.14.16 to v8.3.2, the node_modules/.bin directory and associated symlinks are no longer created when running npm i
Expected Behavior
node_modules/.bin directory and associated symlinks are created after running npm i, bare executable names are recognized when used within scripts - e.g. using a script like:
"scripts": {
"postinstall": "lerna bootstrap"
},...running npm run postinstall directly (or implicitly after npm i) works, the lerna name resolves to node_modules/.bin/lerna which inturn poinst to ../lerna/cli.js
Steps To Reproduce
- using
npm@v6.14.16andnode@v16.13.2on macOSv12.0.1(intel)
node --eval 'console.log(process.versions)'{
node: '16.13.2',
v8: '9.4.146.24-node.14',
uv: '1.43.0',
zlib: '1.2.11',
brotli: '1.0.9',
ares: '1.18.1',
modules: '93',
nghttp2: '1.46.0',
napi: '8',
llhttp: '6.0.4',
openssl: '1.1.1m',
cldr: '39.0',
icu: '69.1',
tz: '2021a',
unicode: '13.0'
}- run
npm i npm@8 --global - run
rm -rf node_modules - run
npm i - run
ls -la node_modules/.bin - observe the error:
No such file or directory
Environment
- npm:
v8.3.2 - Node.js:
v16.13.2 - OS Name: macOS
- System Model Name: Monterey (
v12.0.1intel) - npm config:
; "builtin" config from /usr/local/lib/node_modules/npm/npmrc
prefix = "/usr/local"
; "user" config from /Users/me/.npmrc
//registry.npmjs.org/:_authToken = (protected)
; node bin location = /usr/local/Cellar/node@16/16.13.2/bin/node
; cwd = /Users/me/code/particle/js-utils
; HOME = /Users/me
; Run `npm config ls -l` to show all defaults.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingPriority 1high priority issuehigh priority issueRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release