首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用'Time‘模块将NodeJS部署到Azure失败。有人知道为什么吗?

使用'Time‘模块将NodeJS部署到Azure失败。有人知道为什么吗?
EN

Stack Overflow用户
提问于 2013-06-11 00:06:19
回答 1查看 283关注 0票数 0

我正在尝试通过Dropbox将我的node.js应用程序连接到Azure。它在过去运行得很好,但经过几次更新后,我得到了一个"Deploy Failed“,并显示了以下错误日志。

似乎在构建Node time模块时出现了问题。我不记得安装过它,但我猜它是在我安装“moment”模块时安装的。

你知道是什么阻止了它的正确构建吗?

非常感谢!

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2013-06-11 01:27:09

我刚刚弄明白了,所以我把答案留给下一个来解决这个问题的人。 package.json文件不包含此依赖项

代码语言:javascript
复制
"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"
},

我认为,如果它可以通过时间错误,那么它可能会遇到其他错误,因为缺少一些其他依赖项。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17028205

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档