gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 01:08:42 27 4
gpt4 key购买 nike

Azure 不会安装添加到 package.json 的包

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

来 self 的 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 安装新软件包?

最佳答案

这是我自己的错。

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

重新运行npm Shrinkwrap,并提交修复,解决问题。

关于Node.JS:Azure 不会从 package.json 安装新的依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20192049/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com