安装:

    - apt-get -y update
    - apt-get -y install nodejs
    - apt-get -y install npm


    执行报错
    Unable to locate package npm.

    解决

    - curl -sL https://deb.nodesource.com/setup_10.x | bash -
          - apt-get -y update
          - apt-get -y install nodejs
          - apt-get -y install npm