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.

Ionic 1 does not run CLI commands such as `ionic info` or `ionic build ios`

See original GitHub issue

From @shotbyabel on May 6, 2016 18:36

Short description of the problem:

Not sure if me updating to Node 6 is causing all this… but I am working on an Ionic 1 app with a remote team and lately our versions have not liked each other. I was wondering if the fact that I have also been working on Ionic 2 projects for whatever reason my CLI “thinks” these apps are also Ionic 2 and there for is shooting me the error below? (i know it makes no sense but I have no clue)

What behavior are you expecting?

I want to be able to run ionic commands like ionic info , ionic build ios etc… and not get this error… or message…

issue in detail

insert any relevant code between the above and below backticks

mymac ~/code/92_AAC/newApp on master[!]
$ ionic build ios
WARN: ionic.project has been renamed to ionic.config.json, please rename it.
Uh oh! Looks like you're missing a module in your gulpfile:
Cannot find module 'gulp'

Do you need to run `npm install`?

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

Which Ionic Version? 1.x or 2.x

Plunker that shows an example of your issue

For Ionic 1 issues - http://plnkr.co/edit/Xo1QyAUx35ny1Xf9ODHx?p=preview

For Ionic 2 issues - http://plnkr.co/edit/L8JN6w5mqwbMY2E14dbk?p=preview

Run ionic info from terminal/cmd prompt: (paste output below)

Copied from original issue: driftyco/ionic#6461

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:25 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jgw96commented, May 6, 2016

Hey! Thanks for opening an issue with us! Most likely, this is related to node 6, as those commands should work, and do work for me (im on node 5.10.1). Would you mind downgrading to node 5 and testing? Also, since this issue is an issue related to the cli and not the framework im going to move this issue over to the ionic-cli repo. Ill continue the conversation with you over there. Thanks!

0reactions
gparsloecommented, Nov 29, 2016

Hi groknit. When I run $ionic serve --lab, it opens as expected in the browser, but I don’t see any ‘Install’ next to IOS or Android. Would you please clarify what you mean by '…clicking “Install” next to IOS an Android?" Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic: Error received when running Ionic cordova build ios
Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of date. TypeError: env.
Read more >
Cannot run ionic. receives "No command 'ionic' found"
1. install the ionic · 2. check npm path · 3. copy full path of ionic · 4. open this file as administrator...
Read more >
How to create an Ionic 5 app - For beginners - Enappd
Ionic is a complete open-source SDK for hybrid mobile app development created by ... Capacitor does not “run on device” or emulate through...
Read more >
IONIC CLI Bug Info.plist with XCode 10 Fix - YouTube
Here is how you can emulate IONIC project to IOS simulator Using XCode 10.Also Please Look at my Full Stack JavaScript Tutorial on...
Read more >
Troubleshooting Your Ionic App - Educative.io
Problem 1: Issues with registerNgModuleType · Problem 2: xcodebuild requires Xcode · Problem 3: Cannot read property of undefined · Problem 4: cordova-res...
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