こすたろーんエンジニアの試行錯誤部屋

作成物の備忘録を書いていきますー

setup nodejs and npm in a docker container

It is a memorandum on setting up nodejs and npm in a docker container with Jetson Xavier NX.

requirement

Jetson Xavier NX
ubuntu18.04
docker
python3.x

contents

スポンサーリンク

Introduction

When I tried to setup npm within a docker container, I got error...

Unable to locate package npm

This is a note on the solution.
↓↓↓

solution

1.do a curl command

curl -sL https://deb.nodesource.com/setup_10.x | bash -  

2.apt install

apt-get install -y nodejs  

3.check

node --version
npm --version

->If the version of each module is displayed, it is OK.

reference

stackoverflow.com

スポンサーリンク