question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bash: npm: command not found

See original GitHub issue

Description

I am running coder in Docker and it works fine. I opened my project folder and try to run ionic serve, npm i then it showing bash: npm: command not found how to fix this ?

DeepinScreenshot_select-area_20190425133618

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
sr229commented, Apr 28, 2019

@jishnutv Docker containers have their own isolated environment, you should supply Node.js and NPM via the package manager. The most official way is via NodeSource. They have instructions for it.

2reactions
romanrehacekcommented, Apr 25, 2019

Read readme file. Download file code-server1.939-vsc1.33.1-linux-x64.tar.gz, unzip and run the command code-server. This will run coder inside your pc, not in Docker. The terminal will be the same as in you pc.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bash: npm: command not found? - node.js - Stack Overflow
If you already installed npm globally on your system, and you are still getting the above error message by using VSCode ...
Read more >
How Do I Fix Bash npm Not Found? - Linux Hint
Whenever you install Node.js, it installs the npm package manager by default. For some reason, however, you may be facing the issue that...
Read more >
How to Fix "npm command not found" Error {Node JS}
The reason may be either the npm package is not installed, incorrectly installed or the path variable is not set for npm. Install...
Read more >
How to fix the NPM command not found error? - MonoVM
Solutions to the “npm command not found” error ... This is a standard error that people face in any Operating System. There can...
Read more >
How to fix the 'npm command not found' error on Windows ...
The four primary causes of the 'npm command not found' error are Node.js and/or npm not installed, path and system variables not set...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found