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

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过,还是这样,在线等答案……


1楼说的对


手动顶1楼,npm install就可以


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


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

【热门文章】
【热门文章】