Vũ Đoàn
Vũ Đoàn

Reputation: 11

NPM - error missing script: dev, but file package.json had "dev"

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

Upvotes: 1

Views: 1172

Answers (2)

Niaz Estefaie
Niaz Estefaie

Reputation: 577

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

Upvotes: 1

Deniz
Deniz

Reputation: 1503

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

Upvotes: 1

Related Questions