-
Notifications
You must be signed in to change notification settings - Fork 865
Error on npm install #465
Comments
Hi, I know there have been some compability issues with the latest version of Node. See this thread for suggested fix #461. Please let me know if this works for you. |
I tried Node.js 0.12.5 and got the same error: foundationpress@1.4.0 postinstall /Users/iamontheinet/Zurb/fd sh: bower: command not found npm ERR! Darwin 14.5.0 npm ERR! Please include the following file with any support request: |
Did you clone the most recent version of FP? I just tested |
Yes, it is a fresh clone as of yesterday. I'll try it again. Note that our Node.js and npm versions are different. Not sure if that matters. |
A temporary solution may be to remove the postscripts from package.json https://github.com/olefredrik/FoundationPress/blob/master/package.json#L28 . Then you are bound to have bower and grunt installed locally and manually run |
Got it. I will keep you posted on how it goes. Thanks! |
Update: starting fresh with a new clone resolved npm install issue (not exactly sure how or why) but then I got stuck on npm run build. Note: I've tried switching to Node.js 0.10.x file to import not found or unreadable: ../components/foundation/scss/normalize Aborted due to warnings. npm ERR! Darwin 14.5.0 |
That's kind of weird. Because the normalize.scss should be generated on npm install and be placed under assets/components/foundation/normalize.scss. As long as this file is present, the import statement in foundation.scss have no reason to fail. What if you remove the components folder completely and do another
Running "copy:scripts" (copy) task Running "copy:iconfonts" (copy) task Running "string-replace:fontawesome" (string-replace) task Running "sass:dist" (sass) task Running "concat:dist" (concat) task Running "uglify:dist" (uglify) task Done, without errors. |
It turned out to be permission issue on ~/.config/configstore/bower-github.yml file. After I changed its owner to my user, npm install and npm run build both worked without throwing any errors. Thanks! [Closing the issue.] I have a question though, if you don't mind: how do I add FoundationPress to an existing Wordpress site? I am assuming https://wordpress.org/plugins/foundationpress/installation/ is not it since it has not been updated. |
I've run in to the same error
Here is the log generated:
I could really use some help here. ff this is a permissions issue, please let me know where and what needs to be adjusted, or if this is a node.js/npm issue, can you please point me to a resource roll back the version I'm using (node 4.1.0 - npm 2.14.3). Thanks in advance, and thanks for going to all this work to make Foundation and WP work together |
Hi @roborracle , I made a workaround guide which can be found here #475 |
Hi @olefredrik , npm WARN deprecated pangyp@2.3.2: use node-gyp@3+, it does all the things
Cannot download "https://github.com/sass/node-sass/releases/download/v3.2.0/darwin-ia32-14_binding.node": HTTP error 404 Not Found
Building: /Users/david/.nvm/versions/node/v0.12.5/bin/node node_modules/pangyp/bin/node-gyp rebuild --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= npm ERR! node-sass@3.2.0 postinstall: |
@olefredrik - that solution worked - thanks again! |
I getting the same error on npm start . What should I do to resolve it ? node version- v6.9.5. npm ERR! Please include the following file with any support request: The npm-debug.log file is created with the same errors. |
Debug-log file contains the following. |
I am having the following issue, looking for some help npm ERR! A complete log of this run can be found in: C:\Users\asus> |
Can you view this in your browser? http://registry.npmjs.org/express |
help me! |
Hi,
I am getting the following error when running npm install.
My env:
sh: bower: command not found
npm ERR! foundationpress@1.4.0 postinstall:
bower install && grunt build
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the foundationpress@1.4.0 postinstall script.
npm ERR! This is most likely a problem with the foundationpress package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bower install && grunt build
npm ERR! You can get their info via:
npm ERR! npm owner ls foundationpress
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 14.5.0
npm ERR! command "/Users/iamontheinet/.nvm/v0.10.40/bin/node" "/Users/iamontheinet/.nvm/v0.10.40/bin/npm" "install"
npm ERR! cwd /Users/iamontheinet/Zurb/fd
npm ERR! node -v v0.10.40
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/iamontheinet/Zurb/fd/npm-debug.log
npm ERR! not ok code 0
Here's the verbose tail of npm-debug.log:
30 info foundationpress@1.4.0 Failed to exec postinstall script
31 error foundationpress@1.4.0 postinstall:
bower install && grunt build
31 error Exit status 127
32 error Failed at the foundationpress@1.4.0 postinstall script.
32 error This is most likely a problem with the foundationpress package,
32 error not with npm itself.
32 error Tell the author that this fails on your system:
32 error bower install && grunt build
32 error You can get their info via:
32 error npm owner ls foundationpress
32 error There is likely additional logging output above.
33 error System Darwin 14.5.0
34 error command "/Users/iamontheinet/.nvm/v0.10.40/bin/node" "/Users/iamontheinet/.nvm/v0.10.40/bin/npm" "install"
35 error cwd /Users/iamontheinet/Zurb/fd-stratio
36 error node -v v0.10.40
37 error npm -v 1.4.28
38 error code ELIFECYCLE
#39 verbose exit [ 1, true ]
Any help will be appreciated. Thanks in advance!
The text was updated successfully, but these errors were encountered: