Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install fails on Mac OS X El Capitan #2

Open
kc14 opened this issue Oct 27, 2015 · 2 comments
Open

npm install fails on Mac OS X El Capitan #2

kc14 opened this issue Oct 27, 2015 · 2 comments

Comments

@kc14
Copy link

kc14 commented Oct 27, 2015

After installing:

  • jekyll 2.5.3
  • node v4.2.1
  • Sass 3.4.19 (Selective Steve)
  • grunt v0.4.5 with grunt-cli v0.1.13

on my mac, using the standard ruby installation

ruby 2.0.0p645 (2015-04-13 revision 50299) [universal.x86_64-darwin15]

that comes with the OS, npm install fails with:

npm ERR! Failed at the [email protected] install script 'node build.js'.

The problem are the dependencies in package.json. The dependencies:

  • "grunt-contrib-sass": "^0.8.1"
  • "grunt-sass": "^0.14.2"

are a way to to old for grunt v0.4.5. I changed them to:

  • "grunt-contrib-sass": "^0.9.2"
  • "grunt-sass": "^1.1.0"

and got at least npm install to work. I have to look further into using this jekyll theme ... as the grunt targets do not seem to work ...

Here is my version of package.json:

{
  "name": "twister",
  "version": "0.1.0",
  "devDependencies": {
    "grunt": "^0.4.5",
    "grunt-autoprefixer": "^1.0.1",
    "grunt-build-control": "^0.3.0",
    "grunt-contrib-copy": "^0.8.0",
    "grunt-contrib-imagemin": "^0.9.4",
    "grunt-contrib-jshint": "~0.10.0",
    "grunt-contrib-nodeunit": "~0.4.1",
    "grunt-contrib-sass": "^0.9.2",
    "grunt-contrib-uglify": "^0.6.0",
    "grunt-contrib-watch": "^0.6.1",
    "grunt-newer": "^1.1.0",
    "grunt-open": "^0.2.3",
    "grunt-responsive-images": "^0.1.6",
    "grunt-sass": "^1.1.0",
    "grunt-shell": "^1.1.1"
  }
}
@Vasanth19
Copy link

+1, getting the same error

@tunjos
Copy link

tunjos commented Aug 22, 2016

There is a missing dependency. Add

"load-grunt-tasks":` "^3.5.2"

and the grunt targets will be able to run.

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

No branches or pull requests

3 participants