1

I ran npm run dev but I do have the following error

missing script: dev

My package.json's scripts section do have a "dev": "nuxt"

enter image description here

enter image description here

2
  • 1
    could you show me the project structure and make sure that you open the correct folder from your cmd Commented May 3, 2021 at 4:49
  • Are you sure, you are in the same directory in CLI and in the editor? mxh-frontend vs project_mxh-frontend Commented May 3, 2021 at 8:54

2 Answers 2

1

delete your package-lock.json and do a npm install. try again after

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

Comments

1

You can delete your node_module and run this command again npm install If this didn't work you can delete node_module and use yarn install

Note: you have to have yarn installed on your pc or laptop

then try npm run dev again

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.