nikhil@nikhil-HP-2000-Notebook-PC:~$ npm start
npm ERR! Error: ENOENT, open '/home/nikhil/package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Linux 3.5.0-51-generic
npm ERR! command "node" "/usr/local/bin/npm" "start"
npm ERR! cwd /home/nikhil
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.3.26
npm ERR! path /home/nikhil/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/nikhil/npm-debug.log
npm ERR! not ok code 0
答案1
错误代码 ENOENT 表示“没有这样的文件或目录”。
检查您的安装是否存在该文件/home/nikhil/package.json
且该文件可被应用程序访问。
从这篇文章堆栈溢出,还建议执行npm init
初始化并创建有效package.json
文件。