Skip to content

bower ESUDO Cannot be run with sudo #11

@Johnwulp

Description

@Johnwulp

Hi,

I'm trying to install this package, but it is failing at the brew-ui@1.4.0 postinstall script.

During npm install i receive this error:

[root@srv01 BrewCore]# npm install

ws@0.4.31 install /home/nodejs/BrewCore/node_modules/brew-ui/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws
(node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory /home/nodejs/BrewCore/node_modules/brew-ui/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o make: Leaving directory/home/nodejs/BrewCore/node_modules/brew-ui/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/build'

brew-ui@1.4.0 postinstall /home/nodejs/BrewCore/node_modules/brew-ui
bower install

bower ESUDO Cannot be run with sudo

Additional error details:
Since bower is a user command, there is no need to execute it with superuser permissions.
If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.

http://www.joyent.com/blog/installing-node-and-npm
https://gist.github.com/isaacs/579814

You can however run a command with sudo using --allow-root option

npm ERR! Linux 2.6.32-042stab092.3
npm ERR! argv "/root/.nvm/v0.11.14/bin/node" "/root/.nvm/v0.11.14/bin/npm" "install"
npm ERR! node v0.11.14
npm ERR! npm v2.0.0
npm ERR! code ELIFECYCLE
npm ERR! brew-ui@1.4.0 postinstall: bower install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the brew-ui@1.4.0 postinstall script.
npm ERR! This is most likely a problem with the brew-ui package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bower install
npm ERR! You can get their info via:
npm ERR! npm owner ls brew-ui
npm ERR! There is likely additional logging output above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions