Open Johnwulp opened 9 years ago
bower install --allow-root seemed to do the trick.
You shouldn't run/install node/bower with sudo
. Isn't it possible that you did it in this way?
The problem is i didn't installed it with sudo, so don't know why this message appears. On my VPS i also have the same error.
On my vps i have node 0.11. But still no luck.
This is my install log:
ws@0.5.0 install /home/nodejs/node_modules/BrewCore/node_modules/socket.io/node_modules/engine.io/node_modules/ws (node-gyp rebuild 2> builderror.log) || (exit 0)
make: Entering directory /home/nodejs/node_modules/BrewCore/node_modules/socket.io/node_modules/engine.io/node_modules/ws/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished COPY Release/bufferutil.node CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/obj.target/validation.node SOLINK_MODULE(target) Release/obj.target/validation.node: Finished COPY Release/validation.node make: Leaving directory
/home/nodejs/node_modules/BrewCore/node_modules/socket.io/node_modules/engine.io/node_modules/ws/build'
|
ws@0.4.31 install /home/nodejs/node_modules/BrewCore/node_modules/socket.io/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/node_modules/BrewCore/node_modules/socket.io/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/node_modules/BrewCore/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/build'
kerberos@0.0.4 install /home/nodejs/node_modules/BrewCore/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos (node-gyp rebuild 2> builderror.log) || (exit 0)
make: Entering directory /home/nodejs/node_modules/BrewCore/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build' SOLINK_MODULE(target) Release/obj.target/kerberos.node SOLINK_MODULE(target) Release/obj.target/kerberos.node: Finished COPY Release/kerberos.node make: Leaving directory
/home/nodejs/node_modules/BrewCore/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build'
|
bson@0.2.15 install /home/nodejs/node_modules/BrewCore/node_modules/mongoose/node_modules/mongodb/node_modules/bson (node-gyp rebuild 2> builderror.log) || (exit 0)
make: Entering directory /home/nodejs/node_modules/BrewCore/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build' CXX(target) Release/obj.target/bson/ext/bson.o SOLINK_MODULE(target) Release/obj.target/bson.node SOLINK_MODULE(target) Release/obj.target/bson.node: Finished COPY Release/bson.node make: Leaving directory
/home/nodejs/node_modules/BrewCore/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build'
\
ws@0.4.31 install /home/nodejs/node_modules/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/node_modules/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/node_modules/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/node_modules/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" "BrewCore/"
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.
[root@srv01 nodejs]#
I'm using this project on Heroku with continuously deployed by Codeship without problem. But I will check it. I've no idea yet why do you got this error.
I Created a app on Heroku, and it's running from there right now, so it's working. I also got no clue why this won't run on my VPS without this error. If i add the --allow-root option is does install the brew-ui. Maybe a solution is to add this to the postinstall in the brew-ui package?
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
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'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.