T
T
thehighhomie2018-01-05 18:30:54
Node.js
thehighhomie, 2018-01-05 18:30:54

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:
5a4f999024a86174983466.png
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

1 answer(s)
R
rustler2000, 2018-01-05
@thehighhomie

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 just
npm install gulp-cli -g

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question