-
Notifications
You must be signed in to change notification settings - Fork 861
After Node update, Issue running npm run production #1011
Comments
Anyone have an idea of how to fix this FP install or repair my Node setup? Thanks in advance for any help! FoundationPress 2.6.1 |
@adambundy can you try to the latest FoundationPress and Foundation version and see if the error still exists? |
Please try |
@olefredrik I get a long log of the updates, then at the bottom an alert to update NPM:
Should I perform this update? Im going to re-try running production now... Thank you very much for your response, help! |
@olefredrik, I ran that npm update, and am still failing on run of production. I get a long log of info, then the following at the bottom: [08:06:40] Starting 'javascript'... TypeError: Path must be a string. Received undefined npm ERR! A complete log of this run can be found in: Thanks for your help thus far - any ideas? |
Try this:
Then once that is complete run:
then:
Then |
@uptownstudios thanks very much. Looks like the gulp uninstall is causing a new error now. At npm install I get:
(node:3017) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. npm ERR! A complete log of this run can be found in: |
That's weird, because I'm running Node v6.11.1 and npm v3.10.10 on Mac OS and I'm able to do a Can you run If you're running Node v6.11.1 and npm v3.10.10, run a |
@olefredrik thanks again for your response! I can verify Im running Node 6.1.0 but npm v5.3.0 - is that npm version too high for FP? |
@olefredrik Im not sure I could tell you how I got there :) but I was able to get back to running Node v6.11.1 and npm v3.10.10 by following the steps you detailed above. I am now able to run production. Thanks very much to you and @uptownstudios for your help! Much appreciated. |
please help me ...currently i m working on windows |
Thank you a lot @uptownstudios . Its works for me. |
please help me......i got this error npm ERR! A complete log of this run can be found in: |
Currently i am working on window so please help me |
how to solve error please in linux npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: npm ERR! A complete log of this run can be found in: |
Thanks a lot Brother @uptownstudios Finally Working |
0 info it worked if it ends with ok |
my server package.json |
my client json |
can some one help me to do |
try paste this code in your terminal
|
thank a lot @uptownstudios ... |
thanks |
Just updated Node and this particular project is failing to run the production task. Running watch does work however.
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'run',
1 verbose cli 'production' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'preproduction', 'production', 'postproduction' ]
5 info lifecycle [email protected]
preproduction: [email protected]preproduction: no script for preproduction, continuing6 silly lifecycle [email protected]
7 info lifecycle [email protected]
production: [email protected]production: unsafe-perm in lifecycle true8 verbose lifecycle [email protected]
9 verbose lifecycle [email protected]
production: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/adambundy/Documents/iMac i7_2 CLIENT FILES/A+ Colorado/apluscolorado.org/wp-content/themes/FoundationPress/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbinproduction: CWD: /Users/adambundy/Documents/iMac i7_2 CLIENT FILES/A+ Colorado/apluscolorado.org/wp-content/themes/FoundationPress10 verbose lifecycle [email protected]
11 silly lifecycle [email protected]
production: Args: [ '-c', 'gulp --production' ]production: Returned: code: 1 signal: null12 silly lifecycle [email protected]
13 info lifecycle [email protected]~production: Failed to exec production script
14 verbose stack Error: [email protected] production:
gulp --production
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:283:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:891:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid [email protected]
16 verbose cwd /Users/adambundy/Documents/iMac i7_2 CLIENT FILES/A+ Colorado/apluscolorado.org/wp-content/themes/FoundationPress
17 verbose Darwin 16.6.0
18 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "production"
19 verbose node v6.11.0
20 verbose npm v5.0.4
21 error code ELIFECYCLE
22 error errno 1
23 error [email protected] production:
gulp --production
23 error Exit status 1
24 error Failed at the [email protected] production script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]
The text was updated successfully, but these errors were encountered: