15
如何直接从GitHub安装npm软件包?
尝试从github安装模块会导致: package.json出现ENOENT错误。 使用express可以轻松复制: npm install https://github.com/visionmedia/express 引发错误。 npm install express 作品。 为什么我不能从github安装? 这是控制台输出: npm http GET https://github.com/visionmedia/express.git npm http 200 https://github.com/visionmedia/express.git npm ERR! not a package /home/guym/tmp/npm-32312/1373176518024-0.6586997057311237/tmp.tgz npm ERR! Error: ENOENT, open '/home/guym/tmp/npm-32312/1373176518024-0.6586997057311237/package/package.json' npm ERR! If you need help, you may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! …