msurdi / frontend-dependencies

Copies node packages to a directory where your frontend tools will be able to find them
24 stars 5 forks source link

prevent postinstall interference of "npm i" by using a subfolder #7

Closed FelixFurtmayr closed 6 years ago

FelixFurtmayr commented 6 years ago

npm 5 brought some more issues

when running the script on postinstall, regular dependencies that were changed, can be occasionally removed which is really bad.

Solution

do not use the same node_modules folder, but a subfolder to store our dependencies. Everything is separate than and works fine.