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

"invalid argument" when running npm --version #2278

Closed
rajkumar-satya opened this issue Nov 8, 2019 · 4 comments
Closed

"invalid argument" when running npm --version #2278

rajkumar-satya opened this issue Nov 8, 2019 · 4 comments
Labels

Comments

@rajkumar-satya
Copy link

C:\Users\satya>npm --version
Error: EINVAL: invalid argument, mkdir 'C:\Program Files\nodejs\node_modules\npm\bin"'
TypeError: Cannot read property 'loaded' of undefined
at exit (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:97:27)
at errorHandler (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:216:3)
at C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js:78:20
at cb (C:\Program Files\nodejs\node_modules\npm\lib\npm.js:225:22)
at C:\Program Files\nodejs\node_modules\npm\lib\npm.js:263:24
at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:81:7
at Array.forEach ()
at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:80:13
at f (C:\Program Files\nodejs\node_modules\npm\node_modules\once\once.js:25:25)
at afterExtras (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:171:20)
C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:97
var doExit = npm.config.loaded ? npm.config.get('_exit') : true
^

TypeError: Cannot read property 'loaded' of undefined
at exit (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:97:27)
at process.errorHandler (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:216:3)
at process.emit (events.js:210:5)
at process._fatalException (internal/process/execution.js:150:25)
6.12.0

@IMHOJEONG
Copy link

It`s maybe helpful to you
zkat/npx#146

@tniessen tniessen changed the title can anyone fix this error please "invalid argument" when running npm --version Nov 15, 2019
@sidrakshe28
Copy link

I'm getting this error
can anyone help ?

C:\Users\Admin pc>npx create-react-app hello
npm ERR! code EINVAL
npm ERR! syscall mkdir
npm ERR! path C:\Users\Admin pc.conda:\Users\Admin1pc\AppData\Roaming\npm-cache --global_cacache\tmp
npm ERR! errno -4071
npm ERR! EINVAL: invalid argument, mkdir 'C:\Users\Admin pc.conda:\Users\Admin
1pc\AppData\Roaming\npm-cache --global_cacache\tmp'
npm ERR! code ENOLOCAL
npm ERR! Could not install from "pc.conda:\Users\Admin~1pc\AppData\Roaming\npm-cache" as it does not contain a package.json file.
Install for [ 'create-react-app@latest' ] failed with code 4294963225

@PoojaDurgad
Copy link

@satyarajj - did @IMHOJEONG 's suggestion help you to resolve the issue? and @sidrakshe28 - is this still an issue?

@PoojaDurgad
Copy link

inactive. closing!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants