【问题标题】:When I run npm install and npm start, it keeps coming up with the following messages当我运行 npm install 和 npm start 时,它不断出现以下消息
【发布时间】:2020-08-15 01:18:18
【问题描述】:

namish@namishs-mbp ~ % npm install

npm WARN saveError ENOENT: no such file or directory, open '/Users/namish/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/namish/package.json'
npm WARN namish No description
npm WARN namish No repository field.
npm WARN namish No README data
npm WARN namish No license field.

up to date in 0.727s
found 0 vulnerabilities

我正在尝试在此之后运行npm start。当我这样做时,会发生这种情况:

namish@namishs-mbp ~ % npm start

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/namish/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/namish/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!     /Users/namish/.npm/_logs/2020-08-15T01_15_06_560Z-debug.log```

I don't know why this says this. Is there any way to fix it?

【问题讨论】:

  • 上面写的很清楚npm ERR! enoent ENOENT: no such file or directory, open '/Users/namish/package.json' npm ERR! enoent This is related to npm not being able to find a file.

标签: node.js python-3.x npm terminal


【解决方案1】:

检查您的package.json 的文件位置,然后重试或使用npm init 创建一个

【讨论】:

    猜你喜欢
    • 2023-02-04
    • 2017-06-15
    • 1970-01-01
    • 1970-01-01
    • 2020-02-20
    • 2018-05-12
    • 2018-04-25
    • 1970-01-01
    相关资源
    最近更新 更多