Hi all I am getting the following error. Please help. I am stuck
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