Error in installation

280 views
Skip to first unread message

Anagha Asok

unread,
Jan 16, 2018, 1:24:25 PM1/16/18
to Closure Compiler Discuss
Hi all I am getting the following error. Please help. I am stuck

sudo npm -g install closurecompiler


anagha@Anu:~$ sudo npm -g install closurecompiler
/usr/bin/ccjs -> /usr/lib/node_modules/closurecompiler/bin/ccjs

> closure...@1.6.1 install /usr/lib/node_modules/closurecompiler
> npm run-script configure


> closure...@1.6.1 configure /usr/lib/node_modules/closurecompiler
> node scripts/configure.js

Configuring ClosureCompiler.js 1.6.1 ...

events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: EACCES: permission denied, open '/usr/lib/node_modules/closurecompiler/compiler/compiler.tar.gz'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! closure...@1.6.1 configure: `node scripts/configure.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the closure...@1.6.1 configure script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

┌──────────────────────────────────────────────────────────┐
│                 npm update check failed                  │
│           Try running with sudo or get access            │
│           to the local update config store via           │
│ sudo chown -R $USER:$(id -gn $USER) /home/anagha/.config │
└──────────────────────────────────────────────────────────┘
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! closure...@1.6.1 install: `npm run-script configure`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the closure...@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!     /home/anagha/.npm/_logs/2018-01-16T04_20_04_344Z-debug.log

Tyler Breisacher

unread,
Jan 16, 2018, 1:25:50 PM1/16/18
to closure-compiler
The package 'closurecompiler' is not from Google, and is deprecated. Please use https://www.npmjs.com/package/google-closure-compiler (if you're okay with running the JVM) or https://www.npmjs.com/package/google-closure-compiler-js (if not).

--

---
You received this message because you are subscribed to the Google Groups "Closure Compiler Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-compiler-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/closure-compiler-discuss/945ca76f-a72a-47e4-9725-452a9d855600%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages