zkat / npx

execute npm package binaries (moved)
https://github.com/npm/npx
Other
2.63k stars 105 forks source link

After removing space in path I'm getting this issue... #232

Open niravpatel20 opened 5 years ago

niravpatel20 commented 5 years ago

NiravPatel@NiravPatel MINGW64 /n/ReactJs $ npx create-react-app todo Command failed: C:\"Program Files"\nodejs\node.exe "C:\Users\NiravPatel\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" config get cache --parseable Error: EPERM: operation not permitted, mkdir 'C:\Users\Dinesh Patel' TypeError: Cannot read property 'loaded' of undefined at exit (C:\Users\NiravPatel\AppData\Roaming\npm\node_modules\npm\lib\utils\error-handler.js:98:27) at errorHandler (C:\Users\NiravPatel\AppData\Roaming\npm\node_modules\npm\lib\utils\error-handler.js:216:3) at C:\Users\NiravPatel\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js:77:20 at cb (C:\Users\NiravPatel\AppData\Roaming\npm\node_modules\npm\lib\npm.js:225:22) at C:\Users\NiravPatel\AppData\Roaming\npm\node_modules\npm\lib\npm.js:263:24 at C:\Users\NiravPatel\AppData\Roaming\npm\node_modules\npm\lib\config\core.js:83:7 at Array.forEach () at C:\Users\NiravPatel\AppData\Roaming\npm\node_modules\npm\lib\config\core.js:82:13 at f (C:\Users\NiravPatel\AppData\Roaming\npm\node_modules\npm\node_modules\once\once.js:25:25) at afterExtras (C:\Users\NiravPatel\AppData\Roaming\npm\node_modules\npm\lib\config\core.js:173:20) C:\Users\NiravPatel\AppData\Roaming\npm\node_modules\npm\lib\utils\error-handler.js:98 var doExit = npm.config.loaded ? npm.config.get('_exit') : true ^

TypeError: Cannot read property 'loaded' of undefined at exit (C:\Users\NiravPatel\AppData\Roaming\npm\node_modules\npm\lib\utils\error-handler.js:98:27) at process.errorHandler (C:\Users\NiravPatel\AppData\Roaming\npm\node_modules\npm\lib\utils\error-handler.js:216:3) at process.emit (events.js:189:13) at process._fatalException (internal/bootstrap/node.js:496:27)