简体   繁体   English

我在运行npm start时在ubuntu 16.04中遇到npm错误

[英]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.

相关问题 运行 NPM start 时收到错误消息 - I am receiving an error when I run NPM start 为什么在 react 中运行 npm start 时出现错误? - Why am I getting error when I run npm start in react? 为什么我在运行时收到此错误:npm run build? - Why am I getting this error when running: npm run build? 当我运行npm run start时出现此错误 - When I run npm run start I get this error 部署到 vercel 时出错,但运行 npm 运行构建时没有错误 - Error deploying to vercel but no errors when I run npm run build 我遇到了 npm 问题,当我运行“npm install”时我不明白 - I am having npm issues I do not understand when I run `npm install` 为什么在运行 npm 运行启动时总是出现此错误? 这是 React 的导入错误 - Why do I keep getting this error when running npm run start? It's an import error on React 当我运行“ npm start”时,节点JS错误,也许是KrakenJS? - Node JS error when I run 'npm start', maybe KrakenJS? 我无法使用npm start运行angular2应用程序,但是,如果我使用npm run lite,则该应用程序会弹出适当的错误消息 - i am not able to run angular2 application with npm start however if i use npm run lite then the application is popping appropriately whats the error 运行npm脚本时出现Typescript错误 - Getting Typescript error when I run an npm script
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM