zurb / foundation-apps

The first front-end framework created for developing fully responsive web apps.
http://foundation.zurb.com/apps
MIT License
1.58k stars 217 forks source link

npm ERR! on Zurb Template Starter Package #821

Open andrewbiddinger opened 8 years ago

andrewbiddinger commented 8 years ago

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 git@github.com: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 git@github.com: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 git@github.com: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 git@github.com: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 git@github.com: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 git@github.com: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 git@github.com: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 git@github.com: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 git@github.com: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 git@github.com: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 git@github.com: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 git@github.com: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 git@github.com: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 git@github.com: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 git@github.com: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 git@github.com: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 git@github.com: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 git@github.com: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 git@github.com: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 git@github.com: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 commented 8 years ago

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 commented 8 years ago

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

Todmy commented 5 years ago

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.