【问题标题】:I can't run the angular app , I get this error我无法运行 Angular 应用程序,我收到此错误
【发布时间】:2021-08-10 01:30:37
【问题描述】:

npm 错误!代码ENOENT npm 错误!系统调用打开 npm 错误! enoent ENOENT:没有这样的文件或目录,打开 'C:\Users\User\Documents\GitHub\angular-11-spring-boot-jwt-authentication\package.json' npm 错误! enoent 这与 npm 找不到文件有关。 npm 错误!恩恩特

npm 错误!可以在以下位置找到此运行的完整日志: npm 错误! C:\Users\User\AppData\Roaming\npm-cache_logs\2021-08-09T10_56_11_734Z-debug.log

Error

【问题讨论】:

  • 你有这个文件吗? C:\Users\User\Documents\GitHub\angular-11-spring-boot-jwt-authentication\package.json
  • 你的节点版本是多少?

标签: node.js angular npm


【解决方案1】:
  • 删除 node_modules 文件夹并使用 npm install

    重新安装所有依赖项
  • 确保您拥有稳定版本的 Node

  • 从 angular 文件夹运行 npm start/ng serve

【讨论】:

    猜你喜欢
    • 2021-10-22
    • 2014-10-25
    • 2021-02-27
    • 2016-04-09
    • 2015-01-29
    • 2019-11-22
    • 2021-10-20
    • 1970-01-01
    • 2020-04-11
    相关资源
    最近更新 更多