You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
When doing npm remove and seemingly also when doing npm install (perhaps because npm is moving things around in the tree?), I end up with empty .bin directories like this:
node_modules/foobar/node_modules/.bin
Where foobar and everything under it is empty, but the .bin wasn't removed. Any other npm install then reports ENOENT for node_modules/foobar/package.json (as per #10471).
Previously, installed packages that contained node_modules with a .bin
directory woudn't get cleaned up correctly. After unbuild of that particular
package, npm would complain with ENOENT errors because the package directory
would be empty (without package.json), as it only contains the leftover
`node_modules/.bin` directory.
PR-URL: #11181
Credit: @chrisirhc
Reviewed-By: @othiym23Fixes: #10887Fixes: #10938
With npm@3 I am regularly getting ENOENT errors.
When doing
npm remove
and seemingly also when doingnpm install
(perhaps because npm is moving things around in the tree?), I end up with empty.bin
directories like this:Where foobar and everything under it is empty, but the .bin wasn't removed. Any other
npm install
then reports ENOENT fornode_modules/foobar/package.json
(as per #10471).Removing all the empty directories fixes it:
Expected behaviour: npm should have removed these directories already.
npm version 3.5.3
Thanks.
The text was updated successfully, but these errors were encountered: