Search code examples
npmzurb-foundation

foundation for emails can't create new project with npm error


I'm new to foundation and trying to start foundation for emails sass version. I installed foundation-cli by npm globally with this version:

Foundation CLI version 2.2.5

Then I cd to an empty folder and try start a tester project by the following command

foundation new --framework emails

The project setup failed:

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 [...] -- [...]' 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.

so I cd to the newly created project folder and npm install. It still failed.

npm ERR! code 1 npm ERR! Command failed: /usr/bin/git checkout 4.0 npm ERR! error: pathspec '4.0' did not match any file(s) known to git. npm

Can anyone give me a hint how to resolve it??


Solution

  • The problem is that there was once an 4.0 tag for Gulp but it was deleted. Just run npm i gulp@next --save-dev or npm i [email protected] --save-dev.

    It was fixed in https://github.com/zurb/foundation-zurb-template/commit/a4472d7fc2409b43bbdc4df4dead7eb5e8e0e691 (see the change in package.json).