-
Notifications
You must be signed in to change notification settings - Fork 865
bower install not running #550
Comments
the error I'm getting is |
I ran into a similar issue the other day and had to run the command with sudo. |
Yes, thanks. I have to run sudo npm install as well. |
@jimlongo56 : There is a postinstall script in package.json making sure both So this should work out of the box. After the initial setup with If this is not working, there is probably an issue with your node or npm versions. Can you check what version you're on? (Type |
Hi olefredrik, I'm pretty sure it must be a permissions issue as well. i'm running Mac OS 10.11.1, node 5.0.0, npm 2.9.1. I've searched for how to correct this permissions issue, since most searches indicate that npm scripts shouldn't need sudo, and I've tried to chown the folders/usr/local/bin/node and npm, but none of these have worked. As I mentioned up top, the message that seems to indicate a problem occurring happens during npm install npm WARN cannot run in wd foundationpress@1.7.0 bower install && grunt build (wd=/Users/jimlongo/Desktop/test/wp-content/themes/my-theme) Since bower doesn't run none of the foundation elements are installed, so build, package, browser-sync, etc., cannot run without errors. |
@jimlongo56 : Can you try using a mature and dependable version of nodejs instead? https://nodejs.org/en/ Not sure if v.5.0.0 will work with all of the devDependencies we're using. The postinstall scripts (including bower install) will not run if you run into other errors during (My personal opinion: npm is awesome when everything works as expected! But it can be a real pain in the ass when we're dealing with different devDependencies supporting different versions of node and so on.) |
Thanks @olefredrik I decided to spend some time sorting out my node installation. Took me a while the 4.2.2. binary installer didn't work at first. I had to completely remove every trace of node. I spent some time trying to install node with brew, and even though that was an improvement it had an issue where npm install would install every possible node module. I finally went back to the binary installer and got node 4.2.2 and npm 2.14.7 installed. Now when I run npm install there is no need for sudo, and everything installs and runs including your post-install scripts. Thanks again for your help, really appreciate it. |
Hi, when I run npm install it does not by itself run bower install, I must run that manually.
How is the process setup so that this automatically gets fired when doing npm install?
Thanks for any help.
The text was updated successfully, but these errors were encountered: