Error code elifecycle errorno 1 when NPM install command is executed in Vue project
The complete error report is as follows
D:\workspace\dev\qorosauto-icv-ota-ui>npm install
> [email protected] install D:\workspace\dev\qorosauto-icv-ota-ui\node_m
odules\phantomjs-prebuilt
> node install.js
PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantom
js-2.1.1-windows.zip
Saving to C:\Users\xufeng.fu\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-window
s.zip
Receiving...
Error making request.
Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
Please report this full log at https://github.com/Medium/phantomjs
npm WARN [email protected] requires a peer of ajv@^5.0.0 but none is installed.
You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fse
vents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}
)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\xufeng.fu\AppData\Roaming\npm-cache\_logs\2019-02-26T02_31
_14_943Z-debug.log
Read the error message. It is suspected that there is a problem when installing phantomjs. Try to execute the command NPM cache clear – force to clear the cache, manually download the phantomjs package and extract it to node_ Then execute the NPM install command again, and the execution is successful
note: CSDN can be downloaded for one point
Read More:
- Error “NPM err” when starting Vue project! code ELIFECYCLE”
- Solution of NPM err! Code elifecycle
- The solution of NPM err! Code elifecycle
- Pull code execution NPM install error code: 128
- Vue cli 4 CMD command creates an error: error command failed NPM install – loglevel error – solution
- Command failed: NPM install — loglevel error — registry= https://registry.npm.taobao.org
- When NPM install, make: G + +: command not found will be prompted
- The Vue project does not install node sass and an error is reported
- NPM install error cb.apply is not a function
- Command failed: NPM install — loglevel error
- ERROR: command failed: npm install –loglevel error
- Using NPM to install Remix error in Windows 10
- NPM err! Code enotfound (2020-07-03)
- npm install Error: gyp verb `which` failed Error: not found: python
- Some mistakes in using NPM
- ERROR command failed: npm install –loglevel error vue-cli-plugin-cube-ui -D
- Create Vue cli project and report error command failed: Yarn
- This (code, message, data: null) still exists after importing spring cloud project into Lombok; the data in the project is unrecognized
- Solve NPM err! code 128
- ERROR: Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-install-zsbbp6ce/mysq