使用“时间”模块将NodeJS部署到Azure失败。谁知道为什么?

时间:2013-06-10 16:06:19

标签: node.js azure

我正在通过Dropbox尝试将我的node.js应用程序添加到Azure。它在过去运行良好,但经过一些更新,我得到一个“Deploy Failed”,其中包含以下日志错误。

构建Node时间模块似乎存在问题。我不记得安装了它,但是当我安装'时刻'模块时,我认为它已经进入了。

有什么想法可以阻止这种建设吗?

非常感谢!

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

1 个答案:

答案 0 :(得分:0)

我刚想通了,所以我在这里留下答案,让下一个人来解决这个问题。 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"
},

我认为如果它可能超过时间错误就会遇到其他一些错误,因为还有一些其他依赖项缺失。