apprtc
apprtc copied to clipboard
Failed at the closurecompiler while "npm install"
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 [email protected] npm info using [email protected] npm info lifecycle [email protected]~preinstall: [email protected] npm info lifecycle [email protected]~preinstall: [email protected] npm info lifecycle [email protected]~preinstall: [email protected] npm info lifecycle [email protected]~preinstall: [email protected] npm info lifecycle [email protected]~preinstall: [email protected] npm info lifecycle [email protected]~preinstall: [email protected] npm info lifecycle [email protected]~preinstall: [email protected] npm info lifecycle [email protected]~preinstall: [email protected] npm info linkStuff [email protected] npm info linkStuff [email protected] npm info linkStuff [email protected] npm info linkStuff [email protected] npm info linkStuff [email protected] npm info linkStuff [email protected] npm info linkStuff [email protected] npm info lifecycle [email protected]~install: [email protected] npm info lifecycle [email protected]~install: [email protected] npm info lifecycle [email protected]~install: [email protected] npm info lifecycle [email protected]~install: [email protected] npm info lifecycle [email protected]~install: [email protected] npm info lifecycle [email protected]~install: [email protected]
[email protected] install /share/apprtc/node_modules/closurecompiler npm run-script configure
npm info it worked if it ends with ok npm info using [email protected] npm info using [email protected] npm info lifecycle [email protected]~preconfigure: [email protected] npm info lifecycle [email protected]~configure: [email protected]
[email protected] configure /share/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 info lifecycle [email protected]~configure: Failed to exec configure script
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/2019-04-28T03_11_15_099Z-debug.log npm info lifecycle [email protected]~install: Failed to exec install script 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/2019-04-28T03_11_15_926Z-debug.log
Steps to reproduce
..
Expected results success
Actual results failed
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
[email protected] 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
😉