There is no exact solution to make shared node_moduled folder. But there are some interesting feratures around this question:
NODE_PATH
environment variable. I couldn't makenpm i -g [pckg]
to install pachage intoNODE_PATH
path.[npm install --prefix](https://stackoverflow.com/questions/14469515/how-to-npm-install-to-a-specified-directory)
. Using this key anetc
directory will be created as anode_modules
sibling. Also all scripts will be installed as a siblings tonode_modules
(not innode_modules/.bin
as usual).yarn install --modules-folder
.npm link
- Using NPM offline