Skip to content
This repository has been archived by the owner on Sep 10, 2019. It is now read-only.

npm ERR! on Zurb Template Starter Package #821

Open
andrewbiddinger opened this issue Jun 17, 2016 · 3 comments
Open

npm ERR! on Zurb Template Starter Package #821

andrewbiddinger opened this issue Jun 17, 2016 · 3 comments

Comments

@andrewbiddinger
Copy link

Hello,

I am trying to install the Zurb Template Starter Package via Terminal but I keep getting npm errors. I am on MAC OS X El Capitan 10.11.5. My node version is: v6.2.1 and npm is: 3.9.3

Note: I tried the solution given in #622 by @gakimball (https://docs.npmjs.com/getting-started/fixing-npm-permissions) my "/.npm" "/usr/local" is owned by me. Any ideas?

Using: foundation new --framework sites --template zurb

Note: Installing just the basic template works fine.
Response:

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/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3: Cloning into bare repository '/Users/andrewbiddinger/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3'...
npm ERR! git clone --template=/Users/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3: Permission denied (publickey).
npm ERR! git clone --template=/Users/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3: fatal: Could not read from remote repository.
npm ERR! git clone --template=/Users/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-15c23bd3: 
npm ERR! git clone --template=/Users/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.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/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.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.

Then I try: npm install

AdministorsMBP4:doda andrewbiddinger$ npm install
(node:854) 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.
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/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb: Cloning into bare repository '/Users/andrewbiddinger/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb'...
npm ERR! git clone --template=/Users/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb: Permission denied (publickey).
npm ERR! git clone --template=/Users/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.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/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb: 
npm ERR! git clone --template=/Users/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.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/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.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 "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.2.1
npm ERR! npm  v3.9.3
npm ERR! code 128

npm ERR! Command failed: git clone --template=/Users/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb
npm ERR! Cloning into bare repository '/Users/andrewbiddinger/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb'...
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/andrewbiddinger/Documents/design-guide/doda/npm-debug.log
AdministorsMBP4:doda andrewbiddinger$ sudo npm install
(node:908) 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.
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/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb: Cloning into bare repository '/Users/andrewbiddinger/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb'...
npm ERR! git clone --template=/Users/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb: Permission denied (publickey).
npm ERR! git clone --template=/Users/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.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/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb: 
npm ERR! git clone --template=/Users/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.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/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.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 "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.2.1
npm ERR! npm  v3.9.3
npm ERR! code 128

npm ERR! Command failed: git clone --template=/Users/andrewbiddinger/.npm/_git-remotes/_templates --mirror [email protected]:gulpjs/gulp-cli.git /Users/andrewbiddinger/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb
npm ERR! Cloning into bare repository '/Users/andrewbiddinger/.npm/_git-remotes/git-github-com-gulpjs-gulp-cli-git-4-0-799725fb'...
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/andrewbiddinger/Documents/design-guide/doda/npm-debug.log
@andrewbiddinger
Copy link
Author

andrewbiddinger commented Jun 17, 2016

Ok, so I was able to do "npm install" by editing package.json file, under devDependencies change "gulp": "gulpjs/gulp#4.0”, to "gulp": "gulpjs/gulp”, and "gulp-cli": "gulpjs/gulp-cli#4.0” to "gulp-cli": "gulpjs/gulp-cli” See:
http://stackoverflow.com/questions/37829902/foundation-project-creation-fails-with-npm-err-git-rev-list-on-debian-8-5-0/37867250#37867250

And: http://foundation.zurb.com/forum/posts/44400-foundation-new-with-zurb-template-fails-with-npm-err-on-debian-850

I wonder why the 4.0 is causing it to fail? Maybe this is something in the package that needs to change?

@rafibomb
Copy link
Contributor

Not sure on this one - @colin-marshall are you familiar with what's happening here?

@Todmy
Copy link

Todmy commented Nov 2, 2018

got the same problem. The solution:
to change in package.json line from
"gulp": "git+https://github.com/gulpjs/gulp.git#4.0",
to
"gulp": "git+https://github.com/gulpjs/gulp#v4.0.0",
and run npm i manually.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants