foundation-cli
foundation-cli copied to clipboard
Issues installing NPM Packages
For some reason the Foundation CLI throws me an error about not being able to download NPM packages when I try to create a new site:
npm ERR! git rev-list -n1 4.0: fatal: ambiguous argument '4.0': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 4.0: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 4.0: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 4.0:
npm ERR! git rev-list -n1 4.0: fatal: ambiguous argument '4.0': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 4.0: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 4.0: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 4.0:
npm ERR! git rev-list -n1 4.0: fatal: ambiguous argument '4.0': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 4.0: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 4.0: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 4.0:
There were some problems during the installation.
✓ New project folder created.
✗ Node modules not installed. Try running npm install manually.
✓ Bower components installed.
Once you've resolved the above issues, run foundation watch while inside the what-does-it-cost folder.
PeterMacBookPro% pwd
/Users/peterberwind/code
PeterMacBookPro% cd what-does-it-cost
PeterMacBookPro% npm install
npm ERR! git rev-list -n1 4.0: fatal: ambiguous argument '4.0': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 4.0: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 4.0: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 4.0:
npm ERR! git rev-list -n1 4.0: fatal: ambiguous argument '4.0': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 4.0: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 4.0: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 4.0:
npm ERR! git rev-list -n1 4.0: fatal: ambiguous argument '4.0': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 4.0: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 4.0: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 4.0:
npm ERR! Darwin 15.5.0
npm ERR! argv "/Users/peterberwind/.nvm/versions/node/v6.2.1/bin/node" "/Users/peterberwind/.nvm/versions/node/v6.2.1/bin/npm" "install"
npm ERR! node v6.2.1
npm ERR! npm v3.9.3
npm ERR! code 128
npm ERR! Command failed: git rev-list -n1 4.0
npm ERR! fatal: ambiguous argument '4.0': unknown revision or path not in the working tree.
npm ERR! Use '--' to separate paths from revisions, like this:
npm ERR! 'git <command> [<revision>...] -- [<file>...]'
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/peterberwind/code/what-does-it-cost/npm-debug.log
I'm using nvm, and have tried with node version 4.4.5 and 6.2.1.
PeterMacBookPro% node -v
v6.2.1
PeterMacBookPro% npm -v
3.9.3
Any ideas what could be causing this?
Seconding this. I have the exact same errors being thrown.
Encountered the same today.
I use https with credential.helper=osxkeychain
for git authentication, not ssh keys.
Git, NodeJS and NPM run fine on my system.
❯ foundation -v
(node:57836) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Foundation CLI version 2.1.0
❯ node -v
v6.2.1
❯ npm -v
3.9.5
❯ foundation new --framework sites --template zurb
(node:55457) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
? What's the project called? (no spaces) ZurbRun
.
/| ,
, /|/ \/| /| Thanks for using ZURB Foundation for Sites!
/|/ |/ | -------------------------------------------
|___| |___| Let's set up a new project.
\___| ^^ ^^ |___/ It shouldn't take more than a minute.
| -[O]--[O]- |
| ___, |
| ... |
\__________/
Downloading the project template...
Done downloading!
Installing dependencies...
npm ERR! git rev-list -n1 4.0: fatal: ambiguous argument '4.0': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 4.0: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 4.0: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 4.0:
npm ERR! git rev-list -n1 4.0: fatal: ambiguous argument '4.0': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 4.0: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 4.0: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 4.0:
npm ERR! git clone --template=/Users/remy/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/remy/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3: Cloning into bare repository '/Users/remy/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3'...
npm ERR! git clone --template=/Users/remy/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/remy/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3: Permission denied (publickey).
npm ERR! git clone --template=/Users/remy/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/remy/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3: fatal: Could not read from remote repository.
npm ERR! git clone --template=/Users/remy/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/remy/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3:
npm ERR! git clone --template=/Users/remy/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/remy/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3: Please make sure you have the correct access rights
npm ERR! git clone --template=/Users/remy/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/remy/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3: and the repository exists.
There were some problems during the installation.
✓ New project folder created.
✗ Node modules not installed. Try running npm install manually.
✓ Bower components installed.
Once you've resolved the above issues, run foundation watch while inside the ZurbRun folder.
>>> elapsed time 59s
❯ cd ZurbRun
❯ npm install
npm ERR! git rev-list -n1 4.0: fatal: ambiguous argument '4.0': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 4.0: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 4.0: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 4.0:
npm ERR! git rev-list -n1 4.0: fatal: ambiguous argument '4.0': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 4.0: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 4.0: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 4.0:
npm ERR! git clone --template=/Users/remy/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/remy/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb: Cloning into bare repository '/Users/remy/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb'...
npm ERR! git clone --template=/Users/remy/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/remy/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb: Warning: Permanently added the RSA host key for IP address '192.30.252.122' to the list of known hosts.
npm ERR! git clone --template=/Users/remy/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/remy/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb: Permission denied (publickey).
npm ERR! git clone --template=/Users/remy/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/remy/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb: fatal: Could not read from remote repository.
npm ERR! git clone --template=/Users/remy/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/remy/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb:
npm ERR! git clone --template=/Users/remy/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/remy/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb: Please make sure you have the correct access rights
npm ERR! git clone --template=/Users/remy/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/remy/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb: and the repository exists.
npm ERR! Darwin 15.5.0
npm ERR! argv "/Users/remy/.node/bin/node" "/Users/remy/.node/bin/npm" "install"
npm ERR! node v6.2.1
npm ERR! npm v3.9.5
npm ERR! code 128
npm ERR! Command failed: git clone --template=/Users/remy/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/remy/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb
npm ERR! Cloning into bare repository '/Users/remy/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb'...
npm ERR! Warning: Permanently added the RSA host key for IP address '192.30.252.122' to the list of known hosts.
npm ERR! Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/remy/exp/nodejs/ZurbRun/npm-debug.log
Suspect this is relevant
@remy-actual / @builtbyvern Did you end up having any luck on this?
I have the very same issue! Wonder how this can be resolved?
I have the same issue. Any ideas on how to resolve this?
I'm having the same issue. +1
I don't think this is an issue with the foundation cli. It's a problem with the foundation zurb template. The template requires the 4.0 branch of https://github.com/gulp/gulp-cli, which doesn't exist anymore.
This pull request requires gulp-cli-1.2.1 from npmjs.com instead of branch 4.0 from github: https://github.com/zurb/foundation-zurb-template/pull/41
With the above pull request applied, I can create new projects like so: git clone https://github.com/zurb/foundation-zurb-template projectname cd projectname npm install bower install
To fix an existing project, open your Foundation project's package.json
, find the entry for gulp-cli
, and change it to read like this:
"gulp-cli": "^1.2.1",
Then run npm install
.
change package.json: "gulp": "git+https://github.com/gulpjs/gulp.git#4.0" =====> "gulp": "^3.9.1"
within package.json change:
"gulp": "git+https://github.com/gulpjs/gulp.git#4.0",
to
"gulp": "git+https://github.com/gulpjs/gulp.git#v4.0.0",