-
Notifications
You must be signed in to change notification settings - Fork 285
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
Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js' #1618
Comments
Related: #1271 |
Conflicting versions of Node.js/npm installed? @nodejs/platform-windows (Transferring to help repo.) |
Hello @MubarakSULAYMAN, a good place to start is to run |
Running |
Ah, I had a similar problem with the linux-x64 version I did the following to fix:
|
ping @MubarakSULAYMAN - is your problem solved? |
inactive, closing |
Updating to the latest version of NPM fixed it for me. |
reboot your C:/ drive , worked out for me ! |
In the case you are in Windows Subsystem for Linux, just have to close an re open the terminal. |
So I installed the npm and then just reopened it and it worked as well. Thanks to @Andraide |
λ npm i -g create-react-native-app Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js' Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js' can anyone tell me solution |
I'm having this issue too.
Please, how can I solve this?
Windows 8.1 |
Install the latest version of node, make sure that the js file e.g app.js is located inside the created folder that holds the file you want to read |
I hope this will help: https://stackoverflow.com/questions/24721903/npm-cli-js-not-found-when-running-npm It worked for me when I updated my node path on system variables. |
I had the same error, and solved it totally, in my case, " v12.18.2\node_modules\npm " not exist, so I how can I find the match npm version ? C:\windows\system32>nvm install v12.18.2 The directory structure after the problem is solved is as follows. The nvm is the nvm root path. |
My fix was to |
I just reinstalled node and I have been having issues with npm...
C:\Users\Mubarak>node -v
v10.13.0
C:\Users\Mubarak>npm -v
internal/modules/cjs/loader.js:582
throw err;
^
Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
internal/modules/cjs/loader.js:582
throw err;
^
Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
The text was updated successfully, but these errors were encountered: