npm install error - error code ELIFECYCLE

We are facing an error when building the project. The npm-debug.log is given below. Any help in resolving this is appreciated. Any additional info needed, please let me know. 

PHPStorm 2018.2.2

PHP 7.1

Framework (Fuel PHP)

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'init' ]
2 info using npm@3.10.10
3 info using node@v6.11.1
4 verbose run-script [ 'preinit', 'init', 'postinit' ]
5 info lifecycle project@1.7.0~preinit: project@1.7.0
6 silly lifecycle project@1.7.0~preinit: no script for preinit, continuing
7 info lifecycle project@1.7.0~init: project@1.7.0
8 verbose lifecycle project@1.7.0~init: unsafe-perm in lifecycle true
9 verbose lifecycle project@1.7.0~init: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\xampp\htdocs\project-fullrest-location\node_modules\.bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\GTK2-Runtime\bin;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Program Files\OpenVPN\bin;C:\Program Files (x86)\PuTTY\;C:\xampp\php;C:\ProgramData\ComposerSetup\bin;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Users\location\AppData\Local\.meteor\;C:\Users\location\AppData\Roaming\npm;C:\Users\location\AppData\Roaming\Composer\vendor\bin;C:\Users\location\AppData\Local\atom\bin;C:\Program Files\Java\jdk-10.0.2\bin
10 verbose lifecycle project@1.7.0~init: CWD: C:\xampp\htdocs\project`
11 silly lifecycle project@1.7.0~init: Args: [ '/d /s /c', 'npm install && npm run build' ]
12 silly lifecycle project@1.7.0~init: Returned: code: 1 signal: null
13 info lifecycle project@1.7.0~init: Failed to exec init script
14 verbose stack Error: project@1.7.0 init: `npm install && npm run build`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255: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.<anonymous> (C:\Program Files\nodejs\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 project@1.7.0
16 verbose cwd C:\xampp\htdocs\project-fullrest-location
17 error Windows_NT 6.3.9600
18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "init"
19 error node v6.11.1
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error project@1.7.0 init: `npm install && npm run build`
22 error Exit status 1
23 error Failed at the project@1.7.0 init script 'npm install && npm run build'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the project package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error npm install && npm run build
23 error You can get information on how to open an issue for this project with:
23 error npm bugs project
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls project
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

0

I would suggest submitting this at StackOverflow (for a bigger audience out there)

0

请先登录再写评论。