zalmoxisus / crossbuilder

Building web, Electron, Cordova and Chrome apps, and cross-browser extensions with React, Redux and Webpack. "Write once, deploy everywhere" concept in practice.
MIT License
484 stars 50 forks source link

npm run dev missing script: "dev" #30

Closed jforaker closed 8 years ago

jforaker commented 8 years ago

npm run dev missing script: "dev"

image

zalmoxisus commented 8 years ago

@jforaker, thanks, I will fix the README. You should run npm start.

ns04stars commented 7 years ago

I am getting the same error not able to resolve it npm ERR! Darwin 14.5.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dev" npm ERR! node v6.2.2 npm ERR! npm v3.10.2

npm ERR! missing script: dev npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues

zalmoxisus commented 7 years ago

@ns04stars, as stated above, you should use npm start. Where did you find any references to npm run dev?

yanlee26 commented 7 years ago

not perfect yet...npm ERR! missing script: start

Olatunji-Longe commented 7 years ago

Why is this issue closed??... I just encountered the same error

@zalmoxisus ...following instructions from the official electron github page; see the link here

npm-issue

waterlili commented 7 years ago

exactly I have same issue and searched a lot but couldn't find solution:(

felipepatricio commented 7 years ago

Try to put this code in your package.json "scripts": { "dev": "webpack-dev-server --progress --colors --inline --hot" },.

Replace the "test: ..." with "dev: ..."

noko966 commented 6 years ago

Hello guys i had same problem. Was wrong doing npm commands from different folder, make sure u run commands from within your project folder.

Sentrosi-Git commented 6 years ago

Yep had same issue. Was in my client folder and not my server folder. Doh!

gargvivek86 commented 6 years ago

Resolved by using below in package.json file.

"scripts": { "test": "echo \"Error: no test specified\" && exit 1", "dev": "lite-server" },

jdiegosierra commented 6 years ago

Worked for me adding "dev": "lite-server" as @gargvivek86 said.

loydbanks commented 6 years ago

still not working for me, its showing an error when i add "dev":"lite-server"

MajorQmz commented 6 years ago

I met the same problem,how to solve it?

yanlee26 commented 6 years ago

Not solved yet, you’d better choose another tools!

On Sep 19, 2018, at 11:06 AM, qmzgirl notifications@github.com wrote:

I met the same problem,how to solve it?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zalmoxisus/crossbuilder/issues/30#issuecomment-422634090, or mute the thread https://github.com/notifications/unsubscribe-auth/AT71j9WXm2BTm9PFCYkPmJ2M_r6f5SlIks5ucbTOgaJpZM4HX67v.

Jennifercarmen commented 5 years ago

solo trata de correr

npm install npm run build && npm run serve

acolmena26 commented 5 years ago

you guys need to add this to your scripts and that should work! "scripts": { "start": "node app", "dev": "nodemon app" },

CharlesLuttos commented 5 years ago

If you are using @vue/cli npm run dev maybe won't work, instead it worked for me on old cli: npm install vue-cli which install cli 2.9.2

npm install vue-cli => npm run dev npm install @vue/cli => npm start

Siddharth77 commented 5 years ago

Let me help you out of this problem : Please go to your project and try running "npm run dev" if it throws error : Like mentioned above please run below command , nano package.json or vi package.json and see if it has not "dev" task inside "scripts" as below , then please see if it is in "start" "scripts": { "build": "webpack --config webpack/webpack.config.prod.js --colors", "dev": "webpack-dev-server --open --config webpack/webpack.config.dev.js" } or "scripts": { "build": "webpack --config webpack/webpack.config.prod.js --colors", "start": "webpack-dev-server --open --config webpack/webpack.config.dev.js" } Then run command like npm run dev or npm run start based on it. Hope it will help. Mark it as resolved if it answered query. Please suggest for improvements, appreciated! .

BitaShamsafar commented 5 years ago

instead of npm run dev use "npm run serve"

raiboudono commented 5 years ago

因果関係わかりませんが、routerを直接installしてから実行したらvue init webpackが実行できるようになり、npm run devもできるようになりました。

ajmeier29 commented 5 years ago

For anyone landing here in 2019, I was using pluralsight and the instructor tells you to use npm run dev, as the comments suggested above, the command is actually npm run start

IsraelFelix commented 5 years ago

For anyone landing here in 2019, I was using pluralsight and the instructor tells you to use npm run dev, as the comments suggested above, the command is actually npm run start

Thank you so much. You are a God sent

gsamad0 commented 5 years ago

For anyone landing here in 2019, I was using pluralsight and the instructor tells you to use npm run dev, as the comments suggested above, the command is actually npm run start

Thank you so much. You are a God sent

still have a problem after using the command: npm run start. pls help

ndengangEdwin commented 5 years ago

I had the same problem too. If you confirm that you are in the correct folder on your terminal, then just run $ npm start and the will solve the problem. I just got mine fixed

AmosSpark commented 5 years ago

npm run start

Firdaus85 commented 5 years ago

npm install --save-dev webpack

npm install --save-dev webpack-dev-server

worked for me.

robynpienaar commented 5 years ago

npm install --save-dev webpack

npm install --save-dev webpack-dev-server

worked for me.

Thank you so much - it worked a treat!

russellfougere commented 5 years ago

It's also mentioned in Pluralsights course "Javascript Fundamentals" by Mark Zamoyta

alfonsojk commented 5 years ago

only install nodemon and add this in your package.json:

"scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "node app", "dev": "nodemon app"

drrh12 commented 4 years ago

Check out if the vscode it's sending a warning that the content cannot be saved because it is a new file and compare to the older one, after this just save and run.

DAlSantana commented 4 years ago

only install nodemon and add this in your package.json:

"scripts": { "test": "echo "Error: no test specified" && exit 1", "start": "node app", "dev": "nodemon app"

Thanks Very Much !!!

RaySoltani commented 4 years ago

I would just like to add that I found this thread extremely helpful. Especially zalmoxisus' comments, which got me rolling through a tutorial that I'm currently working on. Thanks again!

adirgapalit commented 4 years ago

@jforaker, thanks, I will fix the README. You should run npm start.

I still get issue when run npm start. I got error missing script: start

laplace125 commented 4 years ago

npm install --save-dev webpack

npm install --save-dev webpack-dev-server

worked for me.

Thanks, this worked for me

LuoFalin commented 3 years ago

try use "npm run serve"

mahijendra commented 3 years ago

I've tried legit every method that has been suggested here, and nothing is working out ffs :(

DevSri02 commented 6 months ago

i have been facing this issue "Missing script dev" despite of writing in package.json .....................................................................................Finally my solved only by saving the package.json and then "overwrite" it