Skip to content

npm -v throw err #13169

Closed
Closed
@ValBrigatti

Description

@ValBrigatti
  • Version:7.10.0
  • Platform:Mac OS X Yosemite 10.10.5
  • Subsystem:

I tried to run npm -v (node v7.10.0) and I got:
npm -v
module.js:472
throw err;
^

Error: Cannot find module 'internal/fs'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at evalmachine.:18:20
at Object. (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)

How do I fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateIssues and PRs that are duplicates of other issues or PRs.npmIssues and PRs related to the npm client dependency or the npm registry.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions