简体   繁体   English

'npx create-react-app' 不起作用(缺少依赖项)

[英]The 'npx create-react-app' is not working (missing dependency)

I don't know how to solve this dependency issue.我不知道如何解决这个依赖问题。 Some months ago I did use the create-react-app without any problems.几个月前,我确实使用了 create-react-app 没有任何问题。

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
PS C:\Users\me\Desktop\React> npx create-react-app my-app

Creating a new React app in C:\Users\me\Desktop\React\my-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

npm ERR! code ETARGET
npm ERR! notarget No matching version found for confusing-browser-globals@^1.0.9
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'eslint-config-react-app'
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\me\AppData\Roaming\npm-cache\_logs\2019-09-24T11_36_58_826Z-debug.log

Try this,尝试这个,

npm install

npm start

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM