npm install error : download ......compile-latest.tar.gz read ECONNRESET
npm run-script configure
[email protected] configure /webrtc_server/apprtc/node_modules/closurecompiler node scripts/configure.js
Configuring ClosureCompiler.js 1.6.1 ...
Downloading https://dl.google.com/closure-compiler/compiler-latest.tar.gz ... ✖ Download failed: Error: read ECONNRESET
✖ Unfortunately, ClosureCompiler.js could not be configured. See: https://github.com/dcodeIO/ClosureCompiler.js (create an issue maybe)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] configure: node scripts/configure.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] configure script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-08-01T08_20_52_560Z-debug.log npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: npm run-script configure
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 logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-08-01T08_20_53_124Z-debug.log
i get this error ,i really can't understand how this happend?
what the way to slove it?
pleanse help me ,thanks.
i have found a way to solove this problem,i get this error on ubuntu-16.04 , but it is ok on ubuntu 14.04
I had a similar issue with log permission. And I solved in this way:
npm config set unsafe-perm true
npm install
npm config set unsafe-perm false