360卫士阻止进程创建,导致各种异常
前两天使用 npm 进行项目初始化一切正常,今天进行相同操作报错无法运行。
building fresh packages : esbuild command filed.
82795 verbose stack Error: esbuild@0.8.57 postinstall: `node install.js`
82795 verbose stack Exit status 1
82795 verbose stack at EventEmitter.<anonymous> (d:\tools\nvm\v14.8.0\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
82795 verbose stack at EventEmitter.emit (events.js:314:20)
82795 verbose stack at ChildProcess.<anonymous> (d:\tools\nvm\v14.8.0\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
82795 verbose stack at ChildProcess.emit (events.js:314:20)
82795 verbose stack at maybeClose (internal/child_process.js:1051:16)
82795 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
82796 verbose pkgid esbuild@0.8.57
82797 verbose cwd D:\tools\phpstudy\WWW\console\integral
82798 verbose Windows_NT 10.0.17763
82799 verbose argv "d:\\tools\\nodejs\\node.exe" "d:\\tools\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
82800 verbose node v14.8.0
82801 verbose npm v6.14.7
82802 error code ELIFECYCLE
82803 error errno 1
82804 error esbuild@0.8.57 postinstall: `node install.js`
82804 error Exit status 1
82805 error Failed at the esbuild@0.8.57 postinstall script.
82805 error This is probably not a problem with npm. There is likely additional logging output above.
82806 verbose exit [ 1, true ]
查找各种版本信息,以为是依赖升级导致不兼容,无果
项目运行无法启动一直Starting the development server…
百度到这篇文章:原文地址,360可能会拦截,感谢作者,一语惊醒梦中人。查看自己的360:
内心一万只草泥马!!!!!!
总结
之所以前两天没问题,是因为今天 6.18,打开京东购物没关闭,触发了 360 的网购模式,找了半天也没找到设置的地方,记录下,避免以后再遇坑。
本作品采用《CC 协议》,转载必须注明作者和本文链接