Installing NPM on AWS EC2

后端 未结 9 1029
名媛妹妹
名媛妹妹 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:45

    This guide worked perfectly: https://tecadmin.net/install-latest-nodejs-amazon-linux/

    1. Make sure you have make

    # sudo yum install -y gcc-c++ make

    1. Install source

    # curl -sL https://rpm.nodesource.com/setup_14.x | sudo -E bash -

    1. Install node

    # sudo yum install -y nodejs

    Note - you'll have to run sudo npm install to get the installs to work.

提交回复
热议问题