npm 安装package.json 出现这个问题!


环境:windows 7 64位
这是我的package.json文件


 {
  "name": "ruiche.com",
  "version": "0.1.0",
  "description":"",
  "devDependencies": {
    "grunt": "~0.4.1",
    "grunt-contrib-compass": "^1.0.1",
    "grunt-contrib-concat": "^0.5.0",
    "grunt-contrib-connect": "^0.8.0",
    "grunt-contrib-uglify": "^0.6.0",
    "grunt-contrib-watch": "^0.6.1"
  },
  "repository":"git://github.com/gruntjs"
}

当我运行的之后就报这个错误……
图片描述

我试过重装node,也npm cache clear过,还是这样,在线等答案……

npm node.js grunt

N.sweet 10 years, 2 months ago

确认下是否是网络问题。我把配置复制下来测试发现没有问题。

lyhlyh answered 10 years, 2 months ago

手动顶1楼,npm install就可以

arilima answered 10 years, 2 months ago

这么不小心,用错命令了,是npm install --save-dev或者npm install 而不是npm install package.json

Meidlo answered 10 years, 2 months ago

Your Answer