Foundation-emails: New foundation framework for email project setup fails with ambiguous argument - node modules not installed

Created on 20 Dec 2018  Â·  6Comments  Â·  Source: foundation/foundation-emails

Hey folks, I've really been loving this project, and have used it for a handful of email designs. I've installed the CLI on two different machines (Ubuntu 18.04 and Mac OSX High Sierra) and each CLI install worked correctly, but I have seen this bug on both machines when creating a new project.

How can we reproduce this bug?

foundation new --framework emails

Provided project name as bug-test

What did you expect to happen?

I expected to get the new project directory installed and ready to run npm start

What happened instead?
Received this message in terminal:

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:

There were some problems during the installation.

 ✓ New project folder created.
 ✗ Node modules not installed. Try running npm install manually.
 ✓ Bower components installed.

Fix
I googled around for the fatal: ambiguous argument error and found a solution. It looks like the problem is in the package.json

Under devDependencies, gulp is listed as:

"gulp" : "git_https://github.com/gulpjs/gulp.git#4.0"

Changing this to
"gulp" : "4" seems to fix the error.

I'm pretty new to node and am unsure how to correctly push up a fix to the repo to solve this dependency issue, so I'm hoping a maintainer can get that squared away, or at least this issue will be a good source of documentation for anyone having the same issue.

Most helpful comment

Yes, using "gulp": "^4.0.0", in package.json fixes npm install step. Gulp 4 was not released when the repo was written.

All 6 comments

Yes, using "gulp": "^4.0.0", in package.json fixes npm install step. Gulp 4 was not released when the repo was written.

After change gulp value, what do you next ?

Npm install

Duplicate of #930

+1

Closing as duplicate.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AmeliePoulain92 picture AmeliePoulain92  Â·  5Comments

ryangall7 picture ryangall7  Â·  3Comments

frecklebit picture frecklebit  Â·  5Comments

joshvito picture joshvito  Â·  5Comments

iampstew picture iampstew  Â·  5Comments