Wenn Sie versuchen, Zeit/nextjs von Github direkt installieren, schlägt es mit der folgenden Ausnahme fehl.npm Installation von Next.js von Github schlägt fehl
Ich bekomme den gleichen Fehler sowohl beim Ausführen in einer Docker-Instanz und direkt in Osx, und beide auf Knoten 5.2 und 7.2. Ich installiere zum ersten Mal direkt von GitHUB, also weiß ich nicht, ob ich etwas Wichtiges vermisse?
bearbeiten
npm install next
funktioniert wie erwartet, aber nicht die neueste package.json enthalten, die für Docker benötigt wird
Ende bearbeiten
Grüße Mattias
[email protected]:/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
Ja, ich habe sollte, dass hinzugefügt. Aber ich brauche die Version auf Github, da es mein Problem mit einem abhängigen Paket behebt https://github.com/zeit/next.js/issues/344 –
Welche Version von Next laufen Sie gerade? Ich habe es gerade installiert und die Version ist [email protected] Wenn Sie eine niedrigere Version haben, können Sie sie aktualisieren. –
[email protected] funktioniert nicht innerhalb von Docker (oder auf irgendeinem Linux-Host, denke ich) wegen eines Problems in der Version von Is-Windows-Bash, die verwendet wird (siehe das Referenz-Github-Problem). Ein Update dafür wurde in GitHub zusammengeführt, deshalb versuche ich von github anstatt vom npm-Repository zu installieren. –