【问题标题】:Why is npm start is not working on my React app?为什么 npm start 在我的 React 应用程序上不起作用?
【发布时间】:2020-05-10 12:47:38
【问题描述】:

我正在尝试为我的项目加注星标,当我运行时:npm start 我收到以下错误:

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\albat\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\albat\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\albat\AppData\Roaming\npm-cache\_logs\2020-05-10T12_44_42_310Z-debug.log

感谢您的帮助。

谢谢。

【问题讨论】:

  • 阅读错误信息:no such file or directory, open 'C:\Users\albat\package.json'。切换到package.json所在目录

标签: reactjs


【解决方案1】:

您是否只是尝试 npm i,然后 npm start。 ?

【讨论】:

    猜你喜欢
    • 2021-02-02
    • 1970-01-01
    • 2021-03-11
    • 2021-08-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-20
    • 2021-01-03
    相关资源
    最近更新 更多