Open Daxing opened 5 years ago
i am sure it not network issue, since i can download compiler-latest.tar.gz with wget or curl. it nor problem with my system, i had try with ubuntu 14.04/16.04, and install node/npm to newest version. i also had try to run under a node docker instance, node:8.4.0. now i had no any idea for it ~~
I happen to meet this issue. @KaptenJansson @samdutton Any suggestion, thanks
Just checked #514 the duplicated issue likes this one. :(
I'm having the same issue
closurecompiler@1.6.1 configure /redacted/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: Download failed: HTTP status code 404
✖ Unfortunately, ClosureCompiler.js could not be configured. See: https://github.com/dcodeIO/ClosureCompiler.js (create an issue maybe)
Hey 😃
I found no solution on internet but after searching a bit I succeeded by using google-closure-compiler
!
Please see the change I did on package.json
for a third-party library (I needed to build it):
https://github.com/sneko/smart-app-banner/commit/df355f0e168b4d40d902422bdd7c00c864d4b13f#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
If the change cannot be done on the repo, either fork or use npx patch-package
😉
Browsers and versions affected ubuntu 14:04 or 16.04 node:8.4.0 or lastest
Description npm install failed as: root@VM-86-176-ubuntu:/share/apprtc# npm install npm info it worked if it ends with ok npm info using npm@5.3.0 npm info using node@v8.4.0 npm info lifecycle apprtc@1.0.0~preinstall: apprtc@1.0.0 npm info lifecycle closurecompiler-externs@1.0.4~preinstall: closurecompiler-externs@1.0.4 npm info lifecycle isarray@0.0.1~preinstall: isarray@0.0.1 npm info lifecycle string_decoder@0.10.31~preinstall: string_decoder@0.10.31 npm info lifecycle readable-stream@1.0.34~preinstall: readable-stream@1.0.34 npm info lifecycle bl@0.9.5~preinstall: bl@0.9.5 npm info lifecycle closurecompiler@1.6.1~preinstall: closurecompiler@1.6.1 npm info lifecycle grunt-closurecompiler-new-grunt@1.0.1~preinstall: grunt-closurecompiler-new-grunt@1.0.1 npm info linkStuff closurecompiler-externs@1.0.4 npm info linkStuff isarray@0.0.1 npm info linkStuff string_decoder@0.10.31 npm info linkStuff readable-stream@1.0.34 npm info linkStuff bl@0.9.5 npm info linkStuff closurecompiler@1.6.1 npm info linkStuff grunt-closurecompiler-new-grunt@1.0.1 npm info lifecycle closurecompiler-externs@1.0.4~install: closurecompiler-externs@1.0.4 npm info lifecycle isarray@0.0.1~install: isarray@0.0.1 npm info lifecycle string_decoder@0.10.31~install: string_decoder@0.10.31 npm info lifecycle readable-stream@1.0.34~install: readable-stream@1.0.34 npm info lifecycle bl@0.9.5~install: bl@0.9.5 npm info lifecycle closurecompiler@1.6.1~install: closurecompiler@1.6.1
npm info it worked if it ends with ok npm info using npm@5.3.0 npm info using node@v8.4.0 npm info lifecycle closurecompiler@1.6.1~preconfigure: closurecompiler@1.6.1 npm info lifecycle closurecompiler@1.6.1~configure: closurecompiler@1.6.1
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 info lifecycle closurecompiler@1.6.1~configure: Failed to exec configure script npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! closurecompiler@1.6.1 configure:
node scripts/configure.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the closurecompiler@1.6.1 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/2019-04-28T03_11_15_099Z-debug.log npm info lifecycle closurecompiler@1.6.1~install: Failed to exec install script npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! closurecompiler@1.6.1 install:
npm run-script configure
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the closurecompiler@1.6.1 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/2019-04-28T03_11_15_926Z-debug.log
Steps to reproduce
..
Expected results success
Actual results failed