IDEA执行 npm install 报错
错误信息:
F:\IdeaProjects\operationProject\support-web>npm install
npm WARN deprecated runjs@4.4.2: This project has been renamed to 'tasksfile'. Install using 'npm install tasksfile' instead.
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
npm ERR! Error while executing:
npm ERR! E:\Git\cmd\git.EXE ls-remote -h -t git://github.com/adobe-webplatform/eve.git
npm ERR!
npm ERR! fatal: unable to look up github.com (port 9418) (Ӧ�ó���û�е��� WSAStartup������ WSAStartup ʧ�ܡ� )
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\HP\AppData\Roaming\npm-cache\_logs\2019-08-06T14_45_02_231Z-debug.log
解决方法:
执行步骤:
第一步执行:git config --global url."https://".insteadOf git://
第二步执行:npm install
结果:
F:\IdeaProjects\operationProject\support-web>npm install
npm WARN deprecated runjs@4.4.2: This project has been renamed to 'tasksfile'. Install using 'npm install tasksfile' instead.
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
> yorkie@2.0.0 install F:\IdeaProjects\operationProject\support-web\node_modules\yorkie
> node bin/install.js
setting up Git hooks
done
> husky@1.3.1 install F:\IdeaProjects\operationProject\support-web\node_modules\husky
> node husky install
husky > setting up git hooks
husky > done
> node-sass@4.12.0 install F:\IdeaProjects\operationProject\support-web\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.12.0/win32-x64-64_binding.node
Download complete ] - :
Binary saved to F:\IdeaProjects\operationProject\support-web\node_modules\node-sass\vendor\win32-x64-64\binding.node
Caching binary to C:\Users\HP\AppData\Roaming\npm-cache\node-sass\4.12.0\win32-x64-64_binding.node
> core-js@2.6.9 postinstall F:\IdeaProjects\operationProject\support-web\node_modules\core-js
> node scripts/postinstall || echo "ignore"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> node-sass@4.12.0 postinstall F:\IdeaProjects\operationProject\support-web\node_modules\node-sass
> node scripts/build.js
Binary found at F:\IdeaProjects\operationProject\support-web\node_modules\node-sass\vendor\win32-x64-64\binding.node
Testing binary
Binary is fine
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
added 1879 packages from 1920 contributors and audited 52931 packages in 371.026s
found 66 vulnerabilities (64 low, 1 moderate, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details