【发布时间】:2017-01-29 16:58:42
【问题描述】:
当尝试从 Github 直接 npm install zeit/nextjs 时,它会失败并出现以下异常。
在 docker 实例和直接在 osx 中运行时,以及在节点 5.2 和 7.2 上运行时,我都会遇到相同的错误。第一次直接从Github安装,不知道是不是漏掉了什么重要的东西?
编辑
npm install next
按预期工作,但不包含 Docker 所需的最新 package.json
结束编辑
问候 马蒂亚斯
root@2cc7a4204924:/usr/src# npm install git+https://github.com/zeit/next.js
.
.
.
.... lots of other packages installing fine .....
.
.
.
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "git+https://github.com/zeit/next.js"
npm ERR! node v7.2.0
npm ERR! npm v3.10.9
npm ERR! path /usr/src/node_modules/next/dist/bin/next
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/src/node_modules/next/dist/bin/next'
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/src/node_modules/next/dist/bin/next'
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! /usr/src/npm-debug.log
【问题讨论】:
标签: node.js github npm next.js