Question:
implement NPX create react app XXX reports an error
PS D:\Desktop>npx create-react-app demo
Error: EPERM: operation not permitted, mkdir 'D:\nodejs\node_modules\npm\node_cache\_npx'
TypeError: Cannot read property 'get' of undefined
at errorHandler (D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\lib\utils\error-handler.js:213:18)
at D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\bin\npm-cli.js:83:20
at cb (D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\lib\npm.js:215:22)
at D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\lib\npm.js:253:24
at D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\lib\config\core.js:81:7
at Array.forEach (<anonymous>)
at D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\lib\config\core.js:80:13
at f (D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\node_modules\once\once.js:25:25)
at afterExtras (D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\lib\config\core.js:178:20)
at D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\node_modules\mkdirp\index.js:35:29
D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\lib\utils\error-handler.js:213
if (npm.config.get('json')) {
^
TypeError: Cannot read property 'get' of undefined
at process.errorHandler (D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\lib\utils\error-handler.js:213:18)
at process.emit (events.js:400:28)
at process._fatalException (internal/process/execution.js:167:25)
Install for [ 'create-react-app[email protected]' ] failed with code 7
terms of settlement:
Create react- [email protected] Install to global
npm install [email protected] -g
Run after installation
npx create-react-app demo
So you can write the project
Read More:
- Node configuration environment variable and global installation of webapck
- Local workspace file (‘angular.json’) could not be found.
- Using NPM to install Remix error in Windows 10
- NPM and cnpm installation failure solution
- Installing and uninstalling nodejs in Linux
- [Solved] gitbook: node_modules\npm\node_modules\graceful-fs\polyfills.js:287
- TypeError: Cannot read property ‘username‘ of undefined
- events.js:160 throw er; // Unhandled ‘error’ event ^ Error: write after end at Serv
- Error code 1 error resolution (NPX create react app my app execution reports an error)
- [_ Note] Vue.js reported an error: Cannot read property’validate’ of undefined”
- Completely uninstall node and NPM on MAC
- To solve the problem of NPM run eject error in react
- Vue: cannot read property ‘substring’ of undefined“
- Gulp failed to run
- NPM installs dependent packages and reports an error node gyp rebuild… Solution
- macOS Install Homebrew Error LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
- [Solved] npm Error: error:0308010C:digital envelope routines::unsupported
- Mongoose Error: e11000 duplicate key error collection, code: 11000
- Node.js Cannot find module ‘mysql’ ‘express’
- The version number of robot JS running by electron does not match