question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

missing script: serve when running ionic serve

See original GitHub issue

I cloned this git and run ionic serve after npm install. But it says missing script: serve The ionic info is:

Cordova CLI: 6.4.0 
Ionic Framework Version: 3.9.2
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 3.1.5
ios-deploy version: Not installed
ios-sim version: 5.0.13 
OS: macOS Sierra
Node Version: v8.9.0
Xcode version: Xcode 9.0.1 Build version 9A1004

Error is:

npm ERR! missing script: serve
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ionic-conference-app@0.0.0 ionic:serve: `npm run serve "--address" "192.168.12.230" "--v2" "undefined" "--port" "8000" "--livereload-port" "35729"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ionic-conference-app@0.0.0 ionic:serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
There was an error serving your Ionic application: There was an error with the spawned command: serve

I need a help

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
brandyscarneycommented, Mar 8, 2018

Can you please try updating the Ionic CLI? The latest version is 3.19.1:

npm uninstall -g ionic
npm install -g ionic
ionic -v

The last command should print out 3.19.1. Let me know if that fixes it!

1reaction
llvccommented, Mar 9, 2018

@brandyscarney Thanks for your help. It is resolved

Read more comments on GitHub >

github_iconTop Results From Across the Web

ionic missing script: ionic:build
I started my Ionic 4 app from a blank starter and the scripts to run are in the Ionic json. ... "ionic:serve": "ionic-app-scripts...
Read more >
Error during ionic serve
missing script: serve [npm] npm ERR! A complete log of this run can be found in: [npm] npm ERR! C:\Users\l.santaniello\AppData\Roaming\npm ...
Read more >
npm err! missing script: start Solution
Now go to the location of the file and open it. The package.json file will be saved in the directory you are currently...
Read more >
ionic/app-scripts
Scripts for Ionic Projects. Latest version: 3.2.4, last published: 4 years ago. Start using @ionic/app-scripts in your project by running ...
Read more >
How do I solve an NPM error while Ionic starts?
Delete package-lock.json file from your project, if it is created. · Check your npm version using · If your npm version is 5...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found