Echo $ NODE_PATH returns two global installation paths

echo $NODE_PATH

returns

/Users/swills/.npm-packages/lib/node_modules::/Users/swills/npm/lib/node_modules

The launch npm install -g express-generatorsets up the express generator in both:

/Users/swills/.npm-packages/lib/node_modules

and

/Users/swills/npm/lib/node_modules

Is it possible that this will cause future addiction problems? If so, how can I fix this?

I installed node several times for updates and once or twice to avoid using sudo. I think this may be due to this. I vaguely remember using either the first (node ​​-and-npm-in-30-seconds.sh) or the second (only- git -all-the-way.way.sh) option from this github gist: https: // gist.github.com/isaacs/579814

0
source share
1 answer

-, , ? .. ? -, , "which", , . , jdks, " java" .

0

Source: https://habr.com/ru/post/1607570/


All Articles