Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm on windows cannot find internal/fs when installing anything. #13903

Closed
AraHaan opened this issue Jun 25, 2017 · 3 comments
Closed

npm on windows cannot find internal/fs when installing anything. #13903

AraHaan opened this issue Jun 25, 2017 · 3 comments
Labels
npm Issues and PRs related to the npm client dependency or the npm registry.

Comments

@AraHaan
Copy link

AraHaan commented Jun 25, 2017

  • Version: v8.1.2
  • Platform: Windows 7 Ultimate x64 Build 7601
  • Subsystem: internal/fs
E:\>npm install csslint jshint
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'internal/fs'

npm ERR! A complete log of this run can be found in:
npm ERR!     E:\Users\<user name>\AppData\Roaming\npm-cache\_logs\2017-06-25T01_08_4
9_629Z-debug.log

the log:

0 info it worked if it ends with ok
1 verbose cli [ 'E:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'E:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'csslint',
1 verbose cli   'jshint' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 5a5f3cebb73b6654
5 verbose stack Error: Cannot find module 'internal/fs'
5 verbose stack     at Function.Module._resolveFilename (module.js:485:15)
5 verbose stack     at Function.Module._load (module.js:437:25)
5 verbose stack     at Module.require (module.js:513:17)
5 verbose stack     at require (internal/module.js:11:18)
5 verbose stack     at evalmachine.<anonymous>:40:20
5 verbose stack     at Object.<anonymous> (E:\Program Files\nodejs\node_modules\npm\node_modules\cmd-shim\node_modules\graceful-fs\fs.js:11:1)
5 verbose stack     at Module._compile (module.js:569:30)
5 verbose stack     at Object.Module._extensions..js (module.js:580:10)
5 verbose stack     at Module.load (module.js:503:32)
5 verbose stack     at tryModuleLoad (module.js:466:12)
5 verbose stack     at Function.Module._load (module.js:458:3)
5 verbose stack     at Module.require (module.js:513:17)
5 verbose stack     at require (internal/module.js:11:18)
5 verbose stack     at Object.<anonymous> (E:\Program Files\nodejs\node_modules\npm\node_modules\cmd-shim\node_modules\graceful-fs\graceful-fs.js:3:27)
5 verbose stack     at Module._compile (module.js:569:30)
5 verbose stack     at Object.Module._extensions..js (module.js:580:10)
6 verbose cwd E:\Hatsuse-Izuna
7 verbose Windows_NT 6.1.7601
8 verbose argv "E:\\Program Files\\nodejs\\node.exe" "E:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "csslint" "jshint"
9 verbose node v8.1.2
10 verbose npm  v5.0.3
11 error code MODULE_NOT_FOUND
12 error Cannot find module 'internal/fs'
13 verbose exit [ 1, true ]

Other versions of node that also has this issue: 7.7.4

@hiroppy hiroppy added npm Issues and PRs related to the npm client dependency or the npm registry. v8.x labels Jun 25, 2017
@hiroppy
Copy link
Member

hiroppy commented Jun 25, 2017

Maybe the same problem(#13361).

@AraHaan
Copy link
Author

AraHaan commented Jun 25, 2017

Yeah, it looks like it is the same issue as mac. I did not know that it was already reported. Sorry.

@AraHaan AraHaan closed this as completed Jun 25, 2017
@AraHaan
Copy link
Author

AraHaan commented Jun 25, 2017

hmm it seems that after uninstalling latest node and attempting to reinstall that it wanted to find the installer for my old copy of v4.2.2 LTS. So, it might have been a conflict as it seems the windows installer could have installed right on top of it.

edit: doing this fixed my issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
npm Issues and PRs related to the npm client dependency or the npm registry.
Projects
None yet
Development

No branches or pull requests

2 participants