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
npm gruntjs


source to share


No one has answered this question yet

Check out similar questions:

1988
Find the version of the installed npm package
1822
What's the difference between dependencies, devDependencies and peerDependencies in the npm package.json file?
1700
What is the difference between Bower and npm?
1688
What is the -save option for npm install?
1544
How can I upgrade NodeJS and NPM to the next versions?
1203
NPM vs. Bower vs. Browserify vs. Gulp vs. Grunt vs. Webpack
3
How do I fix this requires a grunt @ ~ 0.4.0 peer when installing grunt plugins?
1
Npm install not working on windows
0
NPM cannot install
0
npm install url module ERR! peerinvalid The grunt package does not satisfy peerDependencies



All Articles
Loading...
X
Show
Funny
Dev
Pics