Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Cannot find module 'npmlog' while using npm command #376

Closed
shahbaz17 opened this issue Jan 28, 2016 · 5 comments
Closed

Cannot find module 'npmlog' while using npm command #376

shahbaz17 opened this issue Jan 28, 2016 · 5 comments

Comments

@shahbaz17
Copy link

module.js:341
throw err;
^

Error: Cannot find module 'npmlog'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at /usr/lib/node_modules/npm/bin/npm-cli.js:20:13
at Object. (/usr/lib/node_modules/npm/bin/npm-cli.js:76:3)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)

Can anyone help me to solve this error.
Using Ubuntu
3.19.0-47-generic #53~14.04.1-Ubuntu

@serv
Copy link
Contributor

serv commented Jan 28, 2016

Can you let us know what you get when run these two?

$ node -v
$ npm -v

@shahbaz17
Copy link
Author

Hello @serv
$ node -v
v5.5.0
$ npm -v
module.js:341
throw err;
^

Error: Cannot find module 'npmlog'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at /usr/lib/node_modules/npm/bin/npm-cli.js:20:13
at Object. (/usr/lib/node_modules/npm/bin/npm-cli.js:76:3)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)

@imjul1an
Copy link

imjul1an commented Mar 2, 2016

I have the same issue
node v. 5.7.0

@Emaren
Copy link

Emaren commented Apr 1, 2016

I have the same issue
node -v 5.10.0

➜ node_modules npm install -g generator-ionic
module.js:341
throw err;
^

Error: Cannot find module 'npmlog'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:20:13
at Object. (/usr/local/lib/node_modules/npm/bin/npm-cli.js:76:3)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
➜ node_modules node -v
v5.10.0
➜ node_modules npm -v
module.js:341
throw err;
^

Error: Cannot find module 'npmlog'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:20:13
at Object. (/usr/local/lib/node_modules/npm/bin/npm-cli.js:76:3)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)

@luixxiul
Copy link
Contributor

That was the issue of npm and should be fixed by building it from source code following tj/n#101 (comment). If not please leave a log, closing.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants