npm install fails


(Harshita) #1

npm install fails when I try to install any new packages in my project.

E:\testproj>npm install
Unhandled rejection C:\Users\Freolabs\AppData\Roaming\npm\node_modules\npm\node_modules\npm-registry-client\lib\authify.js:1
(function (exports, require, module, __filename, __dirname) { INDX(

SyntaxError: Invalid or unexpected token
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at new RegClient (C:\Users\Freolabs\AppData\Roaming\npm\node_modules\npm\node_modules\npm-registry-client\index.js:51:20)
at EventEmitter. (C:\Users\Freolabs\AppData\Roaming\npm\node_modules\npm\lib\npm.js:365:26)
at EventEmitter.get (C:\Users\Freolabs\AppData\Roaming\npm\node_modules\npm\node_modules\lazy-property\lazyProperty.js:6:27)
at pacoteOpts (C:\Users\Freolabs\AppData\Roaming\npm\node_modules\npm\lib\config\pacote.js:42:16)
at fetchPackageMetadata (C:\Users\Freolabs\AppData\Roaming\npm\node_modules\npm\lib\fetch-package-metadata.js:58:24)
at limited (C:\Users\Freolabs\AppData\Roaming\npm\node_modules\npm\node_modules\call-limit\call-limit.js:29:10)
at addDependency (C:\Users\Freolabs\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:572:5)

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! https://npm.community

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Freolabs\AppData\Roaming\npm-cache_logs\2018-10-12T11_54_45_303Z-debug.log

E:\testproj>npm -v
6.4.1

E:\testproj>node -v
v8.12.0


(system) #2

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.