一直创建不成功是怎么回事

来源:2-2 React开发环境准备

iyynfei

2019-11-17

$ create-react-app todolist

Creating a new React app in D:\Ambient\wamp\www\todolist.

You are using Node v8.9.3 so the project will be bootstrapped with an old unsupp orted version of tools.

Please update to Node 8.10 or higher for a better, fully supported experience.

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

core-js@2.6.10 postinstall D:\Ambient\wamp\www\todolist\node_modules\core-js
node postinstall || echo “ignore”

npm ERR! path D:\Ambient\wamp\www\todolist\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:\Ambient\wamp\www\tod olist\node_modules\fsevents\node_modules’
npm ERR! { Error: EPERM: operation not permitted, scandir 'D:\Ambient\wamp\www\ todolist\node_modules\fsevents\node_modules’
npm ERR! stack: ‘Error: EPERM: operation not permitted, scandir ‘D:\Ambient\ \wamp\www\todolist\node_modules\fsevents\node_modules’’,
npm ERR! errno: -4048,
npm ERR! code: ‘EPERM’,
npm ERR! syscall: ‘scandir’,
npm ERR! path: ‘D:\Ambient\wamp\www\todolist\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\liu\AppData\Roaming\npm-cache_logs\2019-11-17T05_31_57_95 6Z-debug.log

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

Deleting generated file… node_modules
Deleting generated file… package.json
Deleting todolist/ from D:\Ambient\wamp\www
Done.

写回答

1回答

Dell

2019-11-17

看下你现在的node版本是多少

0
2
iyynfei
成功创建了
2019-11-17
共2条回复

React零基础入门到实战,完成企业级项目简书网站开发

主流新技术 React-redux,React-router4,贯穿基础语法

5275 学习 · 2496 问题

查看课程