[英]I am getting npm errors in ubuntu 16.04 when I run npm start
I have node v7.10.1 and npm v4.2.0 installed on my ubuntu 16.04 os. 我在Ubuntu 16.04 OS上安装了节点v7.10.1和npm v4.2.0。 When I run start npm or sudo start npm I get the below error. 当我运行启动npm或sudo启动npm时,出现以下错误。 It was working this morning now I am getting errors. 今天早上工作正常,现在我遇到了错误。 Please assist 请协助
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
The problem is that npm can't find your package.json. 问题是npm找不到您的package.json。 Be sure that file exists, and you are in the same directory before running npm start
. 在运行npm start
之前,请确保该文件存在,并且您位于同一目录中。
Make sure that /home/dombo/package.json
file exists. 确保/home/dombo/package.json
文件存在。 It is possible that you are in the wrong directory. 您可能在错误的目录中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.