Closed
Description
As I didn't find an existing issue for this problem here is its description:
Current behavior
When running npm i --prefix project
on Windows with node 14 and npm 6.14 install results in a lot of files created inside the project
path. This problem doesn't appear on MAC or Linux versions or on Windows node 15 npm 7
Log after running command:
root\project\is-docker -> root\project\node_modules\is-docker\cli.js
root\project\mkdirp -> root\project\node_modules\mkdirp\bin\cmd.js
root\project\nopt -> root\project\node_modules\nopt\bin\nopt.js
root\project\installed-package-contents -> root\project\node_modules\@npmcli\installed-package-contents\index.js
root\project\sshpk-conv -> root\project\node_modules\sshpk\bin\sshpk-conv
root\project\sshpk-sign -> root\project\node_modules\sshpk\bin\sshpk-sign
...
Results in a lot of files where they shouldn't be:
Expected behavior
I assume those installed files should be inside project/node_modules/.bin
but I am not sure about it.
Steps To Reproduce:
- create folder structure:
root
- project
- run
npm init
onroot
androot/project
- add some dependencies in
project
for examplenpm i @angular/cli
- remove
node_modules
- simulate as the whole project would be cloned from the repository - try running
npm i --prefix project
from root folder
Environment
- OS: Windows 10
- Node: 14.17.4
- npm: 6.14.14