lhqhello 2017-09-13 19:32 采纳率: 0%
浏览 5883

create-react-app my-app 报错

使用create-react-app my-app 创建一个应用 报错如下 请求解答一下谢谢!!!
D:\React>create-react-app my-app

Creating a new React app in D:\React\my-app.

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

uglifyjs-webpack-plugin@0.4.6 postinstall D:\React\my-app\node_modules\uglifyjs-webpack-plugin
node lib/post_install.js

npm ERR! path D:\React\my-app\node_modules\fsevents\node_modules
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall scandir
npm ERR! Error: EPERM: operation not permitted, scandir 'D:\React\my-app\node_modules\fsevents\node_modules'
npm ERR! { Error: EPERM: operation not permitted, scandir 'D:\React\my-app\node_modules\fsevents\node_modules'
npm ERR! stack: 'Error: EPERM: operation not permitted, scandir \'D:\React\my-app\node_modules\fsevents\node_modules\'',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'scandir',
npm ERR! path: 'D:\React\my-app\node_modules\fsevents\node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\L-HQ\AppData\Roaming\npm-cache_logs\2017-09-13T19_15_49_573Z-debug.log

Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.

Deleting generated file... node_modules
Deleting generated file... package.json
Deleting my-app / from D:\React
Done.

  • 写回答

1条回答

  • weixin_40303000 2017-09-19 01:13
    关注

    使用 npm install -g npm@latest 更新下npm,之后使用管理运行npm 重新试下就ok了。

    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?