使用npx create-react-app安装React显示错误

问题描述

Microsoft Windows [版本10.0.18362.959] (c)2019 Microsoft公司。保留所有权利。

C:\ Users \ Ashish> node --version v12.18.3

C:\ Users \ Ashish> npm --version 6.14.6

C:\ Users \ Ashish> npx create-react-app演示

在C:\ Users \ Ashish \ demo中创建一个新的React应用。

安装软件包。这可能需要几分钟。 使用cra-template安装react,react-dom和react-scripts ...

[email protected]后安装C:\ Users \ Ashish \ demo \ node_modules \ babel-runtime \ node_modules \ core-js node -e“ try {require('./ postinstall')} catch(e){}”

[email protected]安装后C:\ Users \ Ashish \ demo \ node_modules \ core-js node -e“ try {require('./ postinstall')} catch(e){}”

[email protected]安装后C:\ Users \ Ashish \ demo \ node_modules \ core-js-pure node -e“ try {require('./ postinstall')} catch(e){}”

65个包裹正在寻找资金 运行npm fund了解详情

Git仓库未初始化错误:命令失败:git --version 在checkExecSyncError(child_process.js:630:11) 在execSync(child_process.js:666:15) 在tryGitinit(C:\ Users \ Ashish \ demo \ node_modules \ react-scripts \ scripts \ init.js:46:5) 在module.exports(C:\ Users \ Ashish \ demo \ node_modules \ react-scripts \ scripts \ init.js:266:7) 在[eval]:3:14 在Script.runInThisContext(vm.js:120:18) 在Object.runInThisContext(vm.js:309:38) 在对象。 ([eval] -wrapper:10:26) 在Module._compile(内部/模块/cjs/loader.js:1137:30) 在evalScript(internal / process / execution.js:94:25){ 状态:1 信号:空, 输出:[null,null,null], pid:7836, 标准输出:null, stderr:null }

使用npm安装模板依赖项... npm WARN注册表由于主机不可访问而使用https://registry.npmjs.org/中的陈旧数据-您是否处于脱机状态? npm WARN注册表由于重新验证期间的请求错误,使用来自https://registry.npmjs.org/的陈旧数据。 npm ERR!代码ENOTFOUND npm ERR! errno ENOTFOUND npm ERR!对https://registry.npmjs.org/@testing-library/dom/-/dom-6.16.0.tgz的网络请求失败,原因:getaddrinfo ENOTFOUND Registry.npmjs.org npm ERR!网络这是与网络连接有关的问题。 npm ERR!网络在大多数情况下,您位于代理服务器后面或网络设置不正确。 npm ERR!网络 npm ERR!网络如果您是代理人,请确保 npm ERR!网络“代理”配置正确设置。请参阅:“ npm帮助配置”

npm ERR!可以在以下位置找到此运行的完整日志: npm ERR! C:\ Users \ Ashish \ AppData \ Roaming \ npm-cache_logs \ 2020-08-14T18_26_30_336Z-debug.log npm install --save @testing-library/react@^9.3.2 @testing-library/jest-dom@^4.2.4 @testing-library/user-event@^7.1.2失败

C:\ Users \ Ashish>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)