Reputation: 723
When trying to npm install zeit/nextjs from Github directly it fails with the following exception.
I get the same error both when running in a docker instance and directly in osx, and both on Node 5.2 and 7.2. First time I'm installing directly from GitHUB, so I don't know if I'm missing something important?
edit
npm install next
works as expected, but does not contain the latest package.json that is needed for Docker
end edit
Regards Mattias
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
Upvotes: 1
Views: 2057
Reputation: 2995
Not sure why it doesn't work from github but you can do this to install the latest beta from npm:
npm i --save next@^2.0.0-beta
Upvotes: 2
Reputation: 5439
Installing the package by name installs it just fine but through github it throws errors. It must be a problem with the current version at Github.
npm i next // works
npm i zeit/next.js // doesn't work
Upvotes: 0