首页 > 解决方案 > 使用“npx create-react-app”创建反应应用程序的问题

问题描述

我想创建一个新的 react 应用程序,我对这些错误消息感到惊讶,尝试卸载 node 和 npm,并重新安装不同的版本。

我也试过:npm cache clean --force,但没有结果。

那是错误信息:

(base) Omar:Desktop macbookpro$ npx create-react-app test-react


npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/macbookpro/.npm/_logs/2020-10-11T14_08_39_430Z-debug.log
Install for [ 'create-react-app@latest' ] failed with code 1

标签: node.jsreactjsnpm

解决方案


推荐阅读