Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Install on Red Hat Enterprise Linux Server release 6.5 #226

Open
paultanner opened this issue Sep 1, 2014 · 3 comments
Open

Install on Red Hat Enterprise Linux Server release 6.5 #226

paultanner opened this issue Sep 1, 2014 · 3 comments

Comments

@paultanner
Copy link

npm install (as root) on this system produces this warning.

npm WARN cannot run in wd [email protected] bower install (wd=/root/angular-seed)

it seems to be more than a warning as no server appears on the chosen port
Paul

@petebacondarwin
Copy link
Contributor

Can you try installing bower globally and running it directly:

npm install -g bower
bower install

(You may need to do the npm install with a sudo)

@paulbhartzog
Copy link

Copied this answer over from http://stackoverflow.com/questions/18136746/npm-install-failed-with-cannot-run-in-wd


The documentation ( http://www.npmjs.org/doc/misc/npm-scripts.html#USER ) says (also http://www.npmjs.org/doc/README.html#Permissions-when-Using-npm-to-Install-Other-Stuff ):

If npm was invoked with root privileges, then it will change the uid to the user account or uid specified by the user config, which defaults to nobody. Set the unsafe-perm flag to run scripts with root privileges.

Your options are:

Run npm install with the --unsafe-perm flag:

[sudo] npm install --unsafe-perm
Add the unsafe-perm flag to your package.json:

"config": { "unsafe-perm":true }
Don't use the preinstall script to install global modules, install them separately and then run the regular npm install without root privileges:

sudo npm install -g coffee-script node-gyp npm install


@pgerochi
Copy link

Did this work for anyone? Seems like it still isn't working for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants