Npm install fails on OSX

$ npm list --depth=0
my_project@1.0.0 /Users/user/www/my_project
β”œβ”€β”€ bower@1.3.9
β”œβ”€β”€ grunt@0.4.5 peer invalid
β”œβ”€β”€ grunt-autoprefixer@0.8.1
β”œβ”€β”€ grunt-cache-bust@0.3.9
β”œβ”€β”€ grunt-contrib-clean@0.5.0
β”œβ”€β”€ grunt-contrib-compass@0.7.2
β”œβ”€β”€ grunt-contrib-concat@0.4.0
β”œβ”€β”€ grunt-contrib-copy@0.5.0
β”œβ”€β”€ grunt-contrib-cssmin@0.9.0
β”œβ”€β”€ grunt-contrib-jshint@0.10.0
β”œβ”€β”€ grunt-contrib-uglify@0.5.0
β”œβ”€β”€ grunt-contrib-watch@0.6.1
β”œβ”€β”€ grunt-notify@0.3.0
β”œβ”€β”€ grunt-npm-install@0.1.0 extraneous
β”œβ”€β”€ node-sass@0.9.3
β”œβ”€β”€ npm@2.0.0-beta.0 extraneous
β”œβ”€β”€ npm-install@0.0.1 extraneous
└── npm-install-retry@0.0.6 extraneous

npm ERR! peer invalid: grunt@0.4.5 /Users/user/www/my_project/node_modules/grunt
npm ERR! extraneous: grunt-npm-install@0.1.0 /Users/user/www/my_project/node_modules/grunt-npm-install
npm ERR! extraneous: npm-install@0.0.1 /Users/user/www/my_project/node_modules/npm-install
npm ERR! extraneous: npm-install-retry@0.0.6 /Users/user/www/my_project/node_modules/npm-install-retry
npm ERR! extraneous: npm@2.0.0-beta.0 /Users/user/www/my_project/node_modules/npm
npm ERR! not ok code 0

      

I have an existing project "my_project" and cannot install local dependencies with npm install. In the .json package:

{
  "name": "my_project",
  "version": "1.0.0",
  "engine": {
    "node": "0.10.x",
    "npm": "1.3.x"
  },
  "devDependencies": {
    "bower": "~1.3.7",
    "grunt": "^0.4.5",
    "grunt-autoprefixer": "^0.8.1",
    "grunt-cache-bust": "^0.3.9",
    "grunt-contrib-clean": "^0.5.0",
    "grunt-contrib-compass": "^0.7.2",
    "grunt-contrib-concat": "^0.4.0",
    "grunt-contrib-copy": "^0.5.0",
    "grunt-contrib-cssmin": "^0.9.0",
    "grunt-contrib-jshint": "^0.10.0",
    "grunt-contrib-uglify": "^0.5.0",
    "grunt-contrib-watch": "^0.6.1",
    "grunt-notify": "^0.3.0",
    "node-sass": "^0.9.3"
  },
  "repository": {
    "type": "git",
    "url": My_project_www
  }
}

$ npm install
npm WARN package.json npm-install@0.0.1 No repository field.
npm WARN prefer global npm@2.0.0-beta.0 should be installed with -g
npm ERR! peerinvalid The package grunt does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer grunt-autoprefixer@0.8.1 wants grunt@~0.4.2
npm ERR! peerinvalid Peer grunt-cache-bust@0.3.9 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-clean@0.5.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-compass@0.7.2 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-concat@0.4.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-copy@0.5.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-cssmin@0.9.0 wants grunt@~0.4.1
npm ERR! peerinvalid Peer grunt-contrib-jshint@0.10.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-uglify@0.5.0 wants grunt@^0.4.0
npm ERR! peerinvalid Peer grunt-contrib-watch@0.6.1 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-notify@0.3.0 wants grunt@~0.4.1
npm ERR! peerinvalid Peer grunt-npm-install@0.1.0 wants grunt@~0.4.1

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/user/www/my_project
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! code EPEERINVALID
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/user/www/my_project/npm-debug.log
npm ERR! not ok code 0

      

I ran the npm cache, and spent hours trying many options that I found, but nothing has helped so far. I only wonder if this could be an issue with the npm version: I have 2.0.0-beta.0, the project requires 1.3.x. The error indicates grunt errors. Others installed the following versions: node v0.10.31

npm 2.0.0-beta.0

bower -v1.3.9

grunt-cli v0.1.13

grunt v0.4.0

+3


source to share





All Articles