我的ubuntu 16.04操作系统上安装了节点v7.10.1和npm v4.2.0。当我运行start npm或sudo start npm时,我得到以下错误。今天早上工作现在我收到了错误。请协助
npm ERR! Linux 4.10.0-32-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v7.10.1
npm ERR! npm v4.2.0
npm ERR! path /home/dombo/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open
'/home/dombo/package.json'
npm ERR! enoent ENOENT: no such file or directory, open '
/home/dombo/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! /home/dombo/.npm/_logs/2017-08-18T20_04_33_148Z-debug.log
答案 0 :(得分:0)
问题是npm无法找到你的package.json。确保该文件存在,并且在运行npm start
之前您位于同一目录中。
答案 1 :(得分:0)
确保/home/dombo/package.json
文件存在。你可能在错误的目录中。