node-chaos-monkey
node-chaos-monkey copied to clipboard
npm install --prefix ui generates bunch of cmd and shell files in the ui directory
Running npm install --prefix ui
on the root dir generates bunch of shell and cmd files in the ui directory.
When runing npm install
in the ui directory those files did not appeared
supporting information:
npm: 6.2.0 os: windows 10
@davidie1 Thanks, I'll have a look
I can confirm this issue. Not only are those files saved to the project directory instead of node_modules/.bin, it will happily overwrite existing files as well. I guessing it's an issue with npm tough.
EDIT: Found an blog entry (https://nerdymishka.com/blog/run-npm-install-in-a-different-directory/) which describes a rather good solution to this problem.
It helped me to discover a propper fix for this problem.
After using 'sudo npm install --cwd ./patch/to/install'
seemed to resolve it and finally ther is an ../node_modules/.bin folder.
Hope this resolves the issue for others as well.
OLD: Is there any update on this topic? Since this error/bug can be found since several years but unfortunatley the only "answer/solution" is ppl saying 'just dont use the -prefix' ... But i need it to install into another directory.
Running
npm install --prefix ui
on the root dir generates bunch of shell and cmd files in the ui directory. When runingnpm install
in the ui directory those files did not appearedsupporting information:
npm: 6.2.0 os: windows 10
Thanks that's something i have to do !
@davidie1 Thanks, I'll have a look
Me too
Thanks!very usefull i hope