Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 正在尝试部署Meteor应用程序--mup安装错误_Javascript_Meteor_Deployment - Fatal编程技术网

Javascript 正在尝试部署Meteor应用程序--mup安装错误

Javascript 正在尝试部署Meteor应用程序--mup安装错误,javascript,meteor,deployment,Javascript,Meteor,Deployment,有人知道我错过了什么吗?我在一台Windows机器上。这种情况发生在我自己开发的应用程序上。我在Meteor的hello world应用程序中也遇到了同样的错误。提前谢谢 mup init工作正常,但当我尝试运行mup安装程序时,收到此错误消息 安装Node.js events.js:141 投掷者;//未处理的“错误”事件 ^ 错误:所有配置的身份验证方法都失败 在tryNextAuth(C:\Users\Justin\AppData\Roaming\npm\node\u modules\m

有人知道我错过了什么吗?我在一台Windows机器上。这种情况发生在我自己开发的应用程序上。我在Meteor的hello world应用程序中也遇到了同样的错误。提前谢谢

mup init工作正常,但当我尝试运行mup安装程序时,收到此错误消息

  • 安装Node.js events.js:141 投掷者;//未处理的“错误”事件 ^ 错误:所有配置的身份验证方法都失败 在tryNextAuth(C:\Users\Justin\AppData\Roaming\npm\node\u modules\mup\node\u modules\nodemiral\node\u modules\ssh2\lib\client.js:290:17) 在SSH2Stream.onUSERAUTH\u失败时(C:\Users\Justin\AppData\Roaming\npm\node\u modules\mup\node\u modules\nodemiral\node\u modules\ssh2\lib\client.js:469:5) 两点钟(events.js:87:13) 在SSH2Stream.emit(events.js:172:7) 在parsePacket(C:\Users\Justin\AppData\Roaming\npm\node\u modules\mup\node\u modules\nodemiral\node\u modules\ssh2\node\u modules\ssh2 streams\lib\ssh.js:3652:10) 在SSH2Stream.\u转换(C:\Users\Justin\AppData\Roaming\npm\node\u modules\mup\node\u modules\nodemiral\node\u modules\ssh2\node\u modules\ssh2 streams\lib\ssh.js:555:13) 在SSH2Stream.Transform.\u read(\u stream\u Transform.js:167:10) 在SSH2Stream.读取(C:\Users\Justin\AppData\Roaming\npm\node\u modules\mup\node\u modules\nodemiral\node\u modules\ssh2\node\u modules\ssh2 streams\lib\ssh.js:213:15) 在SSH2Stream.Transform._write(_stream_Transform.js:155:12) 在doWrite(_stream_writable.js:292:12)
//---------------下面是我的mup.json文件中的信息----------

根据,您需要确保密钥文件不受密码短语的保护。不确定您是否正在部署到Digital Ocean,但本文仍然可以作为一个很好的参考:

根据,您需要确保密钥文件不受密码短语的保护。不确定您是否正在部署到Digital Ocean,但本文仍然可以作为一个很好的参考:


您要部署到哪个版本的Ubuntu?请确保使用Ubuntu 14.04或更高版本。谢谢。我正在尝试部署到Ubuntu 14.04 x64微滴。这是抛出错误的“设置”步骤——还没有到“部署”阶段。你能粘贴你的mup.json文件吗?谢谢@Ruby_Pry——我已经在上面添加了mup.json文件信息。你在mup中使用的用户是否有权在超级用户模式(或sudo)下运行命令?你要部署到哪个版本的Ubuntu?请确保使用Ubuntu 14.04或更高版本。谢谢。我正在尝试部署到Ubuntu 14.04 x64微滴。这是抛出错误的“设置”步骤——还没有到“部署”阶段。你能粘贴你的mup.json文件吗?谢谢@Ruby_Pry——我已经在上面添加了mup.json文件信息。你在mup中使用的用户是否有权在超级用户模式(或sudo)下运行命令?谢谢你的链接-书签。我按照说明在我的计算机上设置和SSH密钥,并在Digital Ocean上创建了一个包含这些信息的水滴。再次尝试mup设置,但仍然收到完全相同的错误消息。我的计算机上有nodeVersion“5.0.0”——尝试在mup.json文件中使用它。我还尝试了nodeVersion“0.10.40”--同样的错误。仍在按照的说明进行操作,以确保我的密钥文件不受密码保护。但是我在Windows机器上,翻译sudo命令有困难。但是,我的用户名是“root”,所以我认为这不是问题所在。你应该使用0.10.40。在本文中,您必须在根目录中设置id_rsa.ssh,这与github或任何其他基于ssh的身份验证相同。感谢您提供的带有书签的链接。我按照说明在我的计算机上设置和SSH密钥,并在Digital Ocean上创建了一个包含这些信息的水滴。再次尝试mup设置,但仍然收到完全相同的错误消息。我的计算机上有nodeVersion“5.0.0”——尝试在mup.json文件中使用它。我还尝试了nodeVersion“0.10.40”--同样的错误。仍在按照的说明进行操作,以确保我的密钥文件不受密码保护。但是我在Windows机器上,翻译sudo命令有困难。但是,我的用户名是“root”,所以我认为这不是问题所在。你应该使用0.10.40。根据本文,您必须在根目录中设置id_rsa.ssh,这与github或任何其他基于ssh的身份验证相同。
{
  // Server authentication info
  "servers": [
    {
      "host": "xxx.xxx.xxx.xx",
      "username": "xxxxxx",
      "password": "xxxxxx"
      // or pem file (ssh based authentication)
      //"pem": "~/.ssh/id_rsa"
    }
  ],

  // Install MongoDB in the server, does not destroy local MongoDB on future setup
  "setupMongo": false,

  // WARNING: Node.js is required! Only skip if you already have Node.js installed on server.
  "setupNode": true,

  // WARNING: If nodeVersion omitted will setup 0.10.36 by default. Do not use v, only version number.
  "nodeVersion": "0.10.40",

  // Install PhantomJS in the server
  "setupPhantom": true,

  // Show a progress bar during the upload of the bundle to the server.
  // Might cause an error in some rare cases if set to true, for instance in Shippable CI
  "enableUploadProgressBar": true,

  // Application name (No spaces)
  "appName": "alp-new",

  // Location of app (local directory)
  "app": ".",

  // Configure environment
  "env": {
    "ROOT_URL": "http://xxxx.xxxx.com/",
    "MONGO_URL": "mongodb://xxxxxx:xxxxxx@candidate.55.mongolayer.com:10503,candidate.16.mongolayer.com:11209/alp-telescope?replicaSet=set-5634fd304bed0503ed000ade"
  },

  // Meteor Up checks if the app comes online just after the deployment
  // before mup checks that, it will wait for no. of seconds configured below
  "deployCheckWaitTime": 30
}