0

I'm trying to install & start npm in my mac terminal and I got this error.

I'm not sure what's the problem, I downloaded npm, python3, pip, but it still complaining.

Does any expert have an answer to this?

enter image description here

2

1 Answer 1

0

1) go project directory 2) open package.json 3) you can see scripts key, change the script key like this "start":"which command you want to execute"

Example

"scripts": {
    "start": "node index.js" or "nodemon index.js" // which file you wants to run 
  }

if package.json not found in your project directory means, run npm init inside your project directory

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.