B
B
Bohdan Petrov2019-12-04 00:02:25
npm
Bohdan Petrov, 2019-12-04 00:02:25

How to set PATH to nodejs NVM?

Installed Node.js using NVM.
Everything seems to be working, but prettier in webstorm swears.
wjqAztf.png
In general, the situation is similar to this one, only there is not a solution, but a crutch.
Please tell me how to set it up correctly. I am using manjaro kde.
Registered in .zshrc, but did not help.

export NODE_PATH=`which node`
export NVM_DIR=~/.nvm
 [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Bohdan Petrov, 2019-12-04
@mindyourlifeguide

Found a solution.
After switching the node
, you just need to enter the command in the console
.
Through the console in 2 commands, it’s still easier than deleting files by folders)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question