admin管理员组文章数量:1386899
I'm installing react and want to create my first project on react but I'm got something problem while install it. how to fix it ?
Error: EEXIST: file already exists, mkdir 'C:\Users\Phantom'
TypeError: Cannot read property 'loaded' of undefined
at exit (F:\nodejs\node_modules\npm\lib\utils\error-handler.js:98:27)
at errorHandler (F:\nodejs\node_modules\npm\lib\utils\error-handler.js:216:3)
at F:\nodejs\node_modules\npm\bin\npm-cli.js:78:20
at cb (F:\nodejs\node_modules\npm\lib\npm.js:225:22)
at F:\nodejs\node_modules\npm\lib\npm.js:263:24
at F:\nodejs\node_modules\npm\lib\config\core.js:83:7
at Array.forEach (<anonymous>)
at F:\nodejs\node_modules\npm\lib\config\core.js:82:13
at f (F:\nodejs\node_modules\npm\node_modules\once\once.js:25:25)
at afterExtras (F:\nodejs\node_modules\npm\lib\config\core.js:173:20)
F:\nodejs\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 (F:\nodejs\node_modules\npm\lib\utils\error-handler.js:98:27)
at process.errorHandler (F:\nodejs\node_modules\npm\lib\utils\error-handler.js:216:3)
at process.emit (events.js:197:13)
at process._fatalException (internal/process/execution.js:123:25)
Install for create-react-app@latest failed with code 7
that's the error said
I'm installing react and want to create my first project on react but I'm got something problem while install it. how to fix it ?
Error: EEXIST: file already exists, mkdir 'C:\Users\Phantom'
TypeError: Cannot read property 'loaded' of undefined
at exit (F:\nodejs\node_modules\npm\lib\utils\error-handler.js:98:27)
at errorHandler (F:\nodejs\node_modules\npm\lib\utils\error-handler.js:216:3)
at F:\nodejs\node_modules\npm\bin\npm-cli.js:78:20
at cb (F:\nodejs\node_modules\npm\lib\npm.js:225:22)
at F:\nodejs\node_modules\npm\lib\npm.js:263:24
at F:\nodejs\node_modules\npm\lib\config\core.js:83:7
at Array.forEach (<anonymous>)
at F:\nodejs\node_modules\npm\lib\config\core.js:82:13
at f (F:\nodejs\node_modules\npm\node_modules\once\once.js:25:25)
at afterExtras (F:\nodejs\node_modules\npm\lib\config\core.js:173:20)
F:\nodejs\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 (F:\nodejs\node_modules\npm\lib\utils\error-handler.js:98:27)
at process.errorHandler (F:\nodejs\node_modules\npm\lib\utils\error-handler.js:216:3)
at process.emit (events.js:197:13)
at process._fatalException (internal/process/execution.js:123:25)
Install for create-react-app@latest failed with code 7
that's the error said
Share Improve this question edited May 1, 2019 at 16:17 Irgi Ahmad Maulana asked Mar 28, 2019 at 13:46 Irgi Ahmad MaulanaIrgi Ahmad Maulana 1071 gold badge2 silver badges10 bronze badges 2- Where are you creating the app? It's always better to do it in an empty directory – Nino Filiu Commented Mar 28, 2019 at 13:49
- i'm creating the app in new folder which is in E:\LearnReact directory. that is an empty directory – Irgi Ahmad Maulana Commented Mar 28, 2019 at 13:59
1 Answer
Reset to default 4I executed the following steps:
npm uninstall -g create-react-app
npm install -g create-react-app
npx create-react-app the-name-of-your-app
本文标签:
版权声明:本文标题:javascript - How to fix Error: EEXIST: file already exists, mkdir 'C:UsersPhantom' when create react app[CLOSE] 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744568375a2613188.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论