我已经成功创建了一个使用npx create-react-app创建的react应用,但是当我键入npm start时,它会标记错误
npm start
The error is:
npm ERR! path C:\Users\Gerald\Documents\profile\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Gerald\Documents\profile\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Gerald\AppData\Roaming\npm-cache\_logs\2019-07-19T08_31_34_664Z-debug.log
答案 0 :(得分:2)
您首先需要导航到创建应用程序的文件夹。