gitubから直接zeit/nextjsをインストールすると、次の例外が発生して失敗します。githubからのNext.jsのnpmインストールに失敗しました
ドッカーインスタンスで実行しているときとosxで直接実行しているときとノード5.2と7.2のときで同じエラーが発生しています。初めて私はGitHUBから直接インストールしているので、何か重要なものがないかどうかわかりません。予想されるが、ドッカー
エンド編集
よろしく マティアス・
のために必要とされている最新のpackage.jsonが含まれていないよう編集
npm install next
作品
[email protected]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
はい、私はそれを追加している必要があります。しかし、私はgithub上のバージョンが必要です。それは、私の問題を依存パッケージで修正したからです。https://github.com/zeit/next.js/issues/344 –
現在実行しているバージョンは?私はちょうどそれをインストールし、バージョンは[email protected]です。より低いバージョンをお持ちの場合は、それを更新することができます。 –
[email protected]は、使用されているis-windows-bashのバージョンに問題があるため(参考文献githubの問題を参照してください)、ドッカーの内部では動作しません。これに対する修正がGitHubにマージされているので、npmリポジトリの代わりにgithubからインストールしようとしています。 –