Answer the question
In order to leave comments, you need to log in
Archlinux & Nodejs: npm setup?
Good evening! Can you please tell me how to set up npm for the user to install packages globally without hemorrhoids?
For example, today I tried to install gulp-cli and it gives me errors, if I try to install the package globally without sudo, it gives an access error, and if with sudo ( sudo npm install gulpjs/gulp-cli -g ) it gives another error:
On the arch wiki advises to write these lines:
PATH="$HOME/.node_modules/bin:$PATH"
export npm_config_prefix=~/.node_modules
in ~/.profile.sh but it doesn't work for me.
Please advise a solution.
Answer the question
In order to leave comments, you need to log in
and why directly from the turnip then (and even judging by the appearance of not having a normal github account for the user)?
write lines and then justnpm install gulp-cli -g
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question