Sh: npm: command not found

Why when i run it keep saying:
sh: npm: command not found
When i make discord bot?

Hey, @athifathif496 welcome to the forums!

Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!

Also see this guide on how to share your code:

Hi @athifathif496 , welcome to the forums!
Try replacing your .replit file with this (taken from the official Node.js template):

entrypoint = "index.js"
modules = ["nodejs-20:v8-20230920-bd784b9"]
hidden = [".config", "package-lock.json"]

[nix]
channel = "stable-23_05"

[unitTest]
language = "nodejs"

[deployment]
run = ["node", "index.js"]
deploymentTarget = "cloudrun"
ignorePorts = false