linux - Cannot run npm as root -



linux - Cannot run npm as root -

i trying grunt , running, next this, , cannot much farther first step. able type

npm install -g grunt-cli

but command fails, giving me advice

please seek running command 1 time again root/administrator

ok... seek run same command sudo

sudo npm install -g grunt-cli

and error

sudo: npm: command not found

which me, sort of weird, because shell able recognize npm without "sudo" thrown in front. how install globally/get sudo recognize npm valid program?

i found out reply help of co-worker. basically, there file did not have permissions on, found looking @ error log. sudo'd chmod'd file code of 777, , ran npm install command again, , found worked. thought paste reply in case helps anyone.

linux node.js install npm sudo

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -