【问题标题】:npm start is throwing the following error on windowsnpm start 在 Windows 上引发以下错误
【发布时间】:2015-09-29 21:29:12
【问题描述】:

您好,我使用的是 Windows 10 和最近安装的意思。但是,当我使用 npm start 命令启动 npm 时,出现以下错误。我什至安装了快递。

C:\>npm start
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\ProgramFiles\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! path C:\package.json
npm ERR! code ENOENT
npm ERR! errno -4058

npm ERR! enoent ENOENT, open 'C:\package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     C:\npm-debug.log

【问题讨论】:

    标签: angularjs node.js express npm mean


    【解决方案1】:

    正如它所说,这不是 npm 本身的问题。

    npm 似乎无法访问您的 package.json,或者它在给定路径中根本不存在。 检查 pacakge.json 的路径。

    此外,您应该在创建有效的 package.json 文件之前执行npm init(如果它不存在)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-29
      • 1970-01-01
      • 2017-04-06
      • 2019-05-07
      • 2021-04-19
      • 2016-02-04
      • 1970-01-01
      • 2014-11-29
      相关资源
      最近更新 更多