Node.JS:Azure不会从package.json安装新的依赖项

时间:2013-11-25 11:33:45

标签: node.js azure

Azure不会安装添加到package.json

的软件包

我最近为我的应用添加了一个新的依赖项 jsonminify

来自我的package.json:

"dependencies": {
  "requirejs": ">=2.0.2",
  "express3-handlebars": "==0.5.0",
  "express": "==3.2.6",
  "twitter": "==0.2.5",
  "instagram-node": "==0.1.13",
  "superagent": "==0.15.7",
  "jsonminify": "==0.2.2"
},
"devDependencies": {
  "grunt": "~0.4.1",
  "matchdep": "~0.1.2",
  "grunt-contrib-watch": "~0.5.1",
  "grunt-open": "~0.2.1",
  "grunt-contrib-less": "~0.7.0",
  "grunt-autoprefixer": "~0.4.1"
}

来自git push azure master的输出:

remote: npm http GET https://registry.npmjs.org/requirejs/-/requirejs-2.1.8.tgz
remote: npm http GET https://registry.npmjs.org/express3-handlebars/-/express3-handlebars-0.5.0.tgz
remote: npm http GET https://registry.npmjs.org/instagram-node/-/instagram-node-0.1.13.tgz
remote: npm http GET https://registry.npmjs.org/superagent/-/superagent-0.15.7.tgz
remote: npm http GET https://registry.npmjs.org/grunt-autoprefixer/-/grunt-autoprefixer-0.4.1.tgz
remote: npm http 200 https://registry.npmjs.org/superagent/-/superagent-0.15.7.tgz
remote: npm http 200 https://registry.npmjs.org/instagram-node/-/instagram-node-0.1.13.tgz
remote: npm http 200 https://registry.npmjs.org/express3-handlebars/-/express3-handlebars-0.5.0.tgz
remote: npm http 200 https://registry.npmjs.org/requirejs/-/requirejs-2.1.8.tgz
remote: npm http 200 https://registry.npmjs.org/grunt-autoprefixer/-/grunt-autoprefixer-0.4.1.tgz

注意Azure不会安装新软件包jsonminify。

如何让Windows Azure安装新软件包?

1 个答案:

答案 0 :(得分:1)

这是我自己的错。

我更新了package.json,但忘了我正在使用npm shrinkwrap。

重新运行npm shrinkwrap,并提交修复程序,将事情排序。