G
G
GLPavel2017-07-24 17:23:26
linux
GLPavel, 2017-07-24 17:23:26

Added modules to node js globally can only be used by root, what's the problem?

Added modules to node js globally can only be used by root, what's the problem?

[email protected]:/home/pavel/Документы/bem# npm-run
Usage: npm-run command [...args]
[email protected]:/home/pavel/Документы/bem# su pavel
[email protected]:~/Документы/bem$ npm-run
bash: npm-run: команда не найдена
[email protected]:~/Документы/bem$

For example

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Larisa Moroz, 2017-07-24
@GLPavel

You may have installed them as root, which is strongly discouraged:
https://docs.npmjs.com/getting-started/installing-...
Try reinstalling as user, or smoke this: Fixing npm permissions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question