I need help it is saying npm: command not found

Question:

Current behavior:

Desired behavior

Repl link:

code snippet

Could you provide more information? What command where you attempting to run? To install a package from npm, run npm i <package name> in the shell.

1 Like

I think OP means that their IDE shell doesn’t recognise the npm command, most probably because it is not installed.

@PipKum, if you are trying to use npm on your computer, you need to make sure npm is installed. It usually comes built-in with Node.js.

To install npm, you need to download node.js, which you can find here: https://nodejs.org/en/download

Also, Replit Node.js repls already have npm installed.

1 Like

24/7 bot: use File History to restore your hidden files to what they were when you created the repl. And

2 Likes