bash: npm: command not found


개요

bash: npm: command not found
-bash: npm: command not found

사례1: node.js 설치된 경우

root@localhost:~# npm
-bash: npm: command not found
root@localhost:~# node -v
v10.21.0

사례2: node.js 설치 안된 경우

root@tester:~/go/src/github.com/jmnote/hello/web# npm install
bash: npm: command not found
root@tester:~/go/src/github.com/jmnote/hello/web# node -V
bash: node: command not found

같이 보기