Installing NPM on AWS EC2

后端 未结 9 1022
名媛妹妹
名媛妹妹 2021-01-31 13:52

Working on Ec2 on AWS.

I have installed Node.js and it works fine.

But the problem arises when trying to install npm.

I am using the following command to

9条回答
  •  伪装坚强ぢ
    2021-01-31 14:32

    Firstly

    sudo yum install make

    You can run this to get zip of desired version of node

    wget https://nodejs.org/dist/v8.10.0/node-v8.10.0.tar.gz
    

    Then you can unzip it like this

    tar -xvf node-v8.10.0.tar.gz
    

    then go in to the extracted directory and install node like this

    ./configure && make && sudo make install
    

提交回复
热议问题