Amazon Elastic Beanstalk node and npm non-standard install locations

后端 未结 5 478
遥遥无期
遥遥无期 2021-01-30 01:41

Amazon Beanstalk installs node and npm into really obscure places - and I\'m not sure they won\'t change if EB decides to use a newer version of node, which would cause my appli

5条回答
  •  孤街浪徒
    2021-01-30 02:29

    Amazon Elastic Beanstalk

    Grand the access to node command

    1. sudo su
    2. vipw
    3. nodejs:x:496:494::/tmp:/bin/bash (":wq" to save changes)
    4. sudo su nodejs
    5. PATH=$PATH:ls -td /opt/elasticbeanstalk/node-install/node-* | head -1/bin
    6. node -v (enjoy :)

提交回复
热议问题