skip to Main Content

I am making a PERN stack(PostgreSQL, Express,React.JS,Node.JS) application. I downloaded the file from github repo, opened it in VS code and tried to run the server using the following command.
Command:
npm start

But I am getting this error message
Error:
Missing script: "start"
And when I saw the list of scripts using the command of "npm run"
I got this error message
Error:
echo "Error: no test specified" && exit 1

Here is the screenshot of the error
Error Screenshot

2

Answers


  1. In your case the command to start the server is:

    node index
    

    or

    node index.js
    

    Before this install node modules via:

    npm install
    
    Login or Signup to reply.
  2. It will be good if you send Packege.json file Screen shot because script is mention there.

    you try npm run start
    Make sure first try npm init
    npm install
    node index.js

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search