小编謝孟穎*_*謝孟穎的帖子

npm 安装错误为 errno -2

我正在尝试安装 npm,但它显示以下错误:

   npm ERR! install Couldn't read dependencies
   npm ERR! Darwin 14.5.0
   npm ERR! argv  "/Users/bunniehsieh/.nvm/versions/node/v4.1.0/bin/node" "/Users/bunniehsieh/.nvm/versions/node/v4.1.0/bin/npm" "install"
   npm ERR! node v4.1.0
   npm ERR! npm  v2.14.3
   npm ERR! path /Users/bunniehsieh/package.json
   npm ERR! code ENOPACKAGEJSON
   npm ERR! errno -2
   npm ERR! syscall open

   npm ERR! package.json ENOENT: no such file or directory, open    '/Users/bunniehsieh/package.json'
   npm ERR! package.json This is most likely not a problem with npm itself.
   npm ERR! package.json npm can't find a package.json file in your current directory.

  npm …
Run Code Online (Sandbox Code Playgroud)

errno node.js npm reactjs

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

errno ×1

node.js ×1

npm ×1

reactjs ×1