[部署到弹性beantalk时出现Npm安装错误

编程入门 行业动态 更新时间:2024-10-07 02:23:35

[部署到<a href=https://www.elefans.com/category/jswz/34/1771280.html style=弹性beantalk时出现Npm安装错误"/>

[部署到弹性beantalk时出现Npm安装错误

我想在弹性beantalk上部署我的nodejs应用程序。我正在使用标准的免费套餐t2.micro实例。

但是当我尝试部署该应用程序时,出现错误消息

“在以下位置找不到应用程序npm调试日志/tmp/deployment/application/npm-debug.log“。

关于SO的其他问题,我添加了交换内存,因为内存不足可能会导致此问题。但是我仍然遇到同样的错误。如何正确部署Nodejs应用程序?

完整的错误日志如下所示:

  Running npm install:  /opt/elasticbeanstalk/node-install/node-v12.16.1-linux-x64/bin/npm
  Setting npm config jobs to 1
  npm config jobs set to 1
  Running npm with --production flag
  Failed to run npm install. Snapshot logs for more details.
  UTC 2020/04/28 02:30:39 cannot find application npm debug log at /tmp/deployment/application/npm-debug.log 

  Traceback (most recent call last):
    File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 695, in <module>
      main()
    File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 677, in main
      node_version_manager.run_npm_install(options.app_path)
    File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 136, in run_npm_install
      self.npm_install(bin_path, self.config_manager.get_container_config('app_staging_dir'))
    File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 180, in npm_install
      raise e
  subprocess.CalledProcessError: Command '['/opt/elasticbeanstalk/node-install/node-v12.16.1-linux-x64/bin/npm', '--production', 'install']' returned non-zero exit status 1 (ElasticBeanstalk::ExternalInvocationError)
caused by: + /opt/elasticbeanstalk/containerfiles/ebnode.py --action npm-install
  npm WARN deprecated [email protected]:  
          

更多推荐

[部署到弹性beantalk时出现Npm安装错误

本文发布于:2024-05-07 07:27:18,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:弹性   错误   beantalk   Npm

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!