Menu icon Foundation
Foundation New with Zurb Template Fails

Hi,

I am having an issue building a new project with the "foundation new" command when selecting the Zurb Template option.

http://i.imgur.com/zb1pkca.png

I have attached an image of the response in the terminal.

Any ideas how to fix this please?

ZURB Templatefoundation newfoundation-cli

Hi,

I am having an issue building a new project with the "foundation new" command when selecting the Zurb Template option.

http://i.imgur.com/zb1pkca.png

I have attached an image of the response in the terminal.

Any ideas how to fix this please?

Connor Freeman almost 3 years ago

Remove "gulp-cli" from the package.json file.

 

https://github.com/zurb/foundation-sites/issues/8934

Darryl Morley almost 3 years ago

Unfortunately, there is already no "gulp-cli" so this doesn't fix my issue:

 

{
  "name": "foundation-sites-template",
  "version": "1.0.0",
  "description": "Basic template for a new Foundation for Sites project.",
  "main": "gulpfile.js",
  "devDependencies": {
    "gulp": "^3.9.0",
    "gulp-autoprefixer": "^3.1.0",
    "gulp-load-plugins": "^1.1.0",
    "gulp-sass": "^2.1.0"
  },
  "scripts": {
    "start": "gulp",
    "build": "gulp sass"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/zurb/foundation-sites-template.git"
  },
  "bugs": {
    "url": "https://github.com/zurb/foundation-sites/issues",
    "email": "foundation@zurb.com"
  },
  "author": "ZURB <foundation@zurb.com>",
  "license": "MIT",
  "private": true,
  "dependencies": {
    "gulp-autoprefixer": "^3.1.0"
  }
}

Thanks for responding though.

Rahim Premji almost 3 years ago

Darryl that seems to be the basic template package json file. You need to edit the package json file for the zurb template.

Clone the package from the official repository https://github.com/zurb/foundation-zurb-template to the location you want to host your project.

Edit the json file as per the the instructions below:

http://stackoverflow.com/questions/37829902/foundation-project-creation-fails-with-npm-err-git-rev-list-on-debian-8-5-0

Follow the full instructions as per the given answer and you should be okay.