4Manuals

  • PDF Cloud HOME

使用npm全局安装create-react-app时出错 Download

    反应:更改方向后触发重新渲染和offsetWidth的重新计算 如何在react图表上的datakey中操作DateTime 如何在nextjs中使用html2canvas 使用一些Typescript文件测试React应用 React-native动画时间序列及其百分比或替代 谁能帮助我通过wordpress登录和注册来创建React Native应用? 如何检查电子屏幕截图的允许状态(macOS catalina) 如何在reactjs中更新值 npm ERR!解析在'… 2.2.33“,” chai“:” ^ 3.5“附近时,JSON输入意外结束。 时间戳格式不支持将React`react-datepicker`作为默认值

我无法使用NPM安装react js。我收到以下错误。 您的环境已设置为使用Node.js 12.3.1(ia32)和npm。

C:\ Users \ User> npm install create-react-app -g

npm错误!代码UNABLE_TO_VERIFY_LEAF_SIGNATURE

npm错误! errno UNABLE_TO_VERIFY_LEAF_SIGNATURE

npm错误!对https://registry.npmjs.org/create-react-app的请求失败,原因:

无法验证第一个证书

npm错误!可以在以下位置找到此运行的完整日志:

npm错误! C:\ Users \ User \ AppData \ Roaming \ npm-cache_logs \ 2019-12-14T05_54_58_7

16Z-debug.log

我来自印度,并且未使用任何公司防火墙或VPN。

2 个答案:

答案 0 :(得分:0)

下载Node.js存档

  • 从Node.js Downloads下载最新版本的Node.js可安装存档文件。

成功安装NodeJS之后,我们可以使用npm开始在其上安装React。您可以通过两种方式安装ReactJS。

- Using webpack and babel.
- Using the create-react-app command.

但是我告诉您有关使用create-react-app命令的信息:

- Instead of using webpack and babel you can install ReactJS more simply by installing create-react-app.

Browse through the desktop and install the Create React App using command prompt as shown below: 

Step 1: go to your specific directory and run below commands inside the folder like as below:
Step 2: d:\reactproject\>npx create-react-app my-app
Step 3: cd my-app
Step 4: npm start

答案 1 :(得分:0)

嘿,您可以尝试使用npx create-react-app ${your project name}



Similar searches
    Google Maps API-动态标记和侦听器 仅在确定了角度并表示(API)后如何访问页面 使用密码连接到VM实例 Samsung RSA1Z Refrigerator User Manual Samsung RF323TEDBBC Refrigerator User Manual