我正在尝试通过Dropbox将我的node.js应用程序连接到Azure。它在过去运行得很好,但经过几次更新后,我得到了一个"Deploy Failed“,并显示了以下错误日志。
似乎在构建Node time模块时出现了问题。我不记得安装过它,但我猜它是在我安装“moment”模块时安装的。
你知道是什么阻止了它的正确构建吗?
非常感谢!
Selected node.js version 0.8.19. Use package.json file to choose a different version.
time@0.9.2 install C:\DWASFiles\Sites\mrtbrls-api\VirtualDirectory0\site\wwwroot\node_modules\time
node-gyp rebuild
C:\DWASFiles\Sites\mrtbrls-api\VirtualDirectory0\site\wwwroot\node_modules\time>node
"D:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node- gyp\bin\node-gyp.js" rebuild
gypnpm ERR! time@0.9.2 install: `node-gyp rebuild`
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
An error has occurred during web site deployment.
npm ERR!
npm ERR! Failed at the time@0.9.2 install script.
npm ERR! This is most likely a problem with the time package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls time
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Program Files (x86)\\nodejs\\0.8.19\\node.exe" "D:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--production"
npm ERR! cwd C:\DWASFiles\Sites\mrtbrls-api\VirtualDirectory0\site\wwwroot
npm ERR! node -v v0.8.19
npm ERR! npm -v 1.1.37
npm ERR! code ELIFECYCLE
npm ERR! message time@0.9.2 install: `node-gyp rebuild`
npm ERR! message `cmd "/c" "node-gyp rebuild"` failed with 1
npm发布于 2013-06-11 01:27:09
我刚刚弄明白了,所以我把答案留给下一个来解决这个问题的人。 package.json文件不包含此依赖项
"dependencies": {
"connect": "~2.7.4",
"express": "~3.1.1",
"node-uuid": "~1.4.0",
"nodemon": "~0.7.6",
"request": "~2.16.6",
"shortid": "~1.0.9",
"moment": "~2.0.0",
"underscore": "~1.4.4",
"cron": "~1.0.1",
"time": "~0.9.2"
},我认为,如果它可以通过时间错误,那么它可能会遇到其他错误,因为缺少一些其他依赖项。
https://stackoverflow.com/questions/17028205
复制相似问题