简体   繁体   English

在创建项目时反应 Dout?

[英]React Dout in creation of the project?

I'm trying to create the react projet.我正在尝试创建反应项目。 During the creation I'm getting these errors.在创建过程中,我遇到了这些错误。 Please help me!请帮我!

Creating a new React app in H:\React Projects\react-js.在 H:\React Projects\react-js 中创建一个新的 React 应用程序。

Installing packages.安装软件包。 This might take a couple of minutes.这可能需要几分钟。 Installing react, react-dom, and react-scripts with cra-template...使用 cra-template 安装 react、react-dom 和 react-scripts...

npm ERR! npm 错误! Unexpected end of JSON input while parsing near '...\n"}},"0.2.3-next.9b4'在 '...\n"}},"0.2.3-next.9b4' 附近解析时 JSON 输入意外结束

npm ERR! npm 错误! A complete log of this run can be found in: npm ERR!可以在以下位置找到此运行的完整日志:npm ERR! C:\Users\Siva Rami Reddy\AppData\Roaming\npm-cache_logs\2020-09-26T05_06_09_438Z-debug.log C:\Users\Siva Rami Reddy\AppData\Roaming\npm-cache_logs\2020-09-26T05_06_09_438Z-debug.log

Aborting installation.中止安装。 npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed. npm install --save --save-exact --loglevel 错误 react react-dom react-scripts cra-template 失败。

Deleting generated file... package.json Deleting react-js/ from H:\React Projects Done.删除生成的文件... package.json 从 H:\React Projects 删除 react-js/ 完成。

Try this command试试这个命令

 npm cache clean --force

then create new react project然后创建新的反应项目

npx create-react-app yourapp

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

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