为什么“jitsu deploy”得到“错误:无法找到模块'browserid-verifier'”?

时间:2012-03-29 15:59:48

标签: node.js npm nodejitsu

似乎只缺少一个模块,但我在package.json文件中写了,其他人看起来很好。
我在本地调试了这个小应用程序很多次,这里有一个版本的browserid模块...
可以在此处找到browserid-verifier模块: https://github.com/lloyd/node-browserid
和,`package.jsonq文件:

{
  "name": "daily_bookmarks",
  "subdomain": "daily_bookmarks",
  "scripts": {
    "start": "server.coffee"
  },
  "version": "0.0.0-9",
  "engines": {
    "node": "0.6.x"
  },
  "main": "server.js",
  "dependencies": {
    "mongodb": "0.9.9",
    "socket.io": "0.9.3",
    "ezcrypto": "0.0.3",
    "browserid-verifier": "0.0.4"
  }
}

我的笔记本电脑上的版本:

$ npm list -g | grep browser
├─┬ browserid-verifier@0.0.4 
│   ├─┬ browserify@1.8.1  

ERROR:

$ jitsu deploy
info:   Welcome to Nodejitsu
info:   It worked if it ends with Nodejitsu ok
info:   Executing command deploy
info:   Analyzing your application dependencies in server.coffee
warn:   Local version appears to be old.
warn:   Your package.json version will be incremented for you automatically.
warn:   About to write /home/chen/code/home/git/docview/projects/daily_bookmarks/package.json
data:   
data:   {
data:       engines: { node: '0.6.x' },
data:       dependencies: {
data:           socket.io: '0.9.3',
data:           browserid-verifier: '0.0.4',
data:           mongodb: '0.9.9',
data:           ezcrypto: '0.0.3'
data:       },
data:       subdomain: 'daily_bookmarks',
data:       version: '0.0.0-9',
data:       name: 'daily_bookmarks',
data:       main: 'server.js',
data:       scripts: { start: 'server.coffee' }
data:   }
data:   
prompt: Is this ok? (yes): 
warn:   Creating new snapshot for version 0.0.0-9
info:   Done creating snapshot 0.0.0-9
info:   Updating application daily_bookmarks
info:   Activating snapshot 0.0.0-9 for daily_bookmarks
info:   Stopping app daily_bookmarks
info:   App daily_bookmarks is now stopped
info:   Starting app daily_bookmarks
error:  Error running command deploy
error:  Nodejitsu Error (500): Internal Server Error
info:   Nodejitsu not ok

1 个答案:

答案 0 :(得分:2)

npm ERR! error installing jwcrypto@0.1.1
npm ERR! error installing browserid-verifier@0.0.4

npm ERR! ...SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:683:

这是我在尝试在本地安装 browserid-verifier 时获得的。在尝试 npm install 时,似乎存在一些问题。您可以将其捆绑在您的应用中。

"bundleDependencies": [
  "browserid-verifier"
]