Reputation: 69
What I typed:
npm run dev
Error:
npm ERR! Missing script: "dev"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\andre\AppData\Local\npm-cache\_logs\2021-11-12T04_58_51_898Z-debug.log
Json:
{
"name": "port",
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vite build",
"serve": "vite preview"
},
"devDependencies": {
"vite": "^2.6.4"
},
"dependencies": {
"three": "^0.134.0"
}
}
Upvotes: 4
Views: 12759
Reputation: 397
Goto you project directory by cd your-project-name
.
run npm run dev
command and try again (In your npm command "N" is capital).
and if not work please check below link (please refer green tick answer) :
How to resolve npm run dev missing script issues?
Upvotes: 2