Tag Archives: Getting Started

Error code elifecycle errorno when NPM install command is executed in Vue project

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

【wget failed】Connecting to 127.0.0.1:7890… failed: Connection refused.

always reports this error when downloading the configuration file while configuring the coolfly agent. At first, I thought it was the problem that the agency website gave out there, stalling for a long time is not good. Then during wine installation today, after adding the PPA Channel, execute the Apt-get Update to report the same error. The error was finally found at

set before the proxy address, not changed back.

--2020-02-18 12:10:33--  https://rbq.caipin.pro/link/cias4tBlguQQ9EVF?clash=1
Connecting to 127.0.0.1:7890... failed: Connection refused.

although (set) inside (network proxy) was changed back to automatic, it could be seen from env| grep-i proxy command that the system was still accessed through the proxy port, but VPN was not set successfully at this time, so it became unable to download.

i2@i2:~/Downloads $ env|grep -I proxy
http_proxy=http://127.0.0.1:7890/
socks_proxy=socks://127.0.0.1:7891/
https_proxy=https://127.0.0.1:7890/

the solution is as follows [1] :

$ unset http_proxy
$ unset https_proxy
 
$ env|grep -I proxy
未输出任何东西

Specific reference:

[1]
the author: no slope of the former Soviet union
link: https://www.jianshu.com/p/d6730c16a4c9
source: Jane books
copyright owned by the author. Commercial reprint please contact the author for authorization, non-commercial reprint please indicate the source.