node-chaos-monkey icon indicating copy to clipboard operation
node-chaos-monkey copied to clipboard

npm install --prefix ui generates bunch of cmd and shell files in the ui directory

Open davidie1 opened this issue 6 years ago • 6 comments

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

Linked issue

untitled

davidie1 avatar Feb 16 '19 20:02 davidie1

@davidie1 Thanks, I'll have a look

goldbergyoni avatar Feb 19 '19 13:02 goldbergyoni

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.

AVee avatar Apr 16 '19 12:04 AVee

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.

sinister0 avatar Sep 13 '20 18:09 sinister0

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

Linked issue

untitled

Thanks that's something i have to do !

Hexx333 avatar Apr 23 '23 08:04 Hexx333

@davidie1 Thanks, I'll have a look

Me too

Hexx333 avatar Apr 23 '23 08:04 Hexx333

Thanks!very usefull i hope

Hexx333 avatar Apr 23 '23 08:04 Hexx333