Cannot run ionic. receives "No command 'ionic' found"

install ionic
ionic command not found windows
ionic cli
install ionic 4 locally
yarn install ionic
ionic globally install
install ionic in ubuntu
how to set up ionic

I want to start using the ionic framework, but unfortunately I'm already failing on the first step.

I am running Ubuntu 13.04 and I have node v0.10.25 installed. I've installed ionic, at described in their docs:

sudo npm install -g cordova
sudo npm install -g ionic

The installation went well, no errors or warnings, but after the installation I type


and I get the error:

No command 'ionic' found, did you mean:
 Command 'ionice' from package 'util-linux' (main)
 Command 'sonic' from package 'sonic' (universe)
ionic: command not found

I'm pretty new to ubuntu so I might have something not configured correctly, but I can't find what.


for some of you, the two answer above might not work. here's a more general solution for situation where you see "XX" command not found

first check your npm root and npm root -g the result for the npm root -g should be something like "/usr/local". if it's not, then you found your problem.

change it by:

npm config set prefix /usr/local

then npm root -g should give you something like /usr/local/lib/node_modules . Then go ahead re-install everything with -g you will be good to go!

Cannot run ionic. receives “No command 'ionic' found”, Cannot run ionic. receives “No command 'ionic' found” - node.js. You have to go to Bluetooth settings on your phone and see if it’s properly paired and connected to your Ionic. Then do this: Open the Fitbit app; Go to Account and then select your Fitbit Ionic.

Well I found it finally.

The ionic installation was at /home/guy/npm/bin/ionic, not at /usr/bin/ionic at it should be.

Solved it with:

sudo ln -s /home/guy/npm/bin/ionic /usr/bin/ionic


Cannot run ionic. receives “No command 'ionic' found , I want to start using the ionic framework but unfortunately Im already failing on the first stepI am running Ubuntu 1304 and I have node Finally, make sure your Ionic is able to receive Notification by swiping right while on the clock face and check if under Notifications "Receive from phone" is selected. I hope this can be helpful, give it a try and keep me posted in case you need anything else.

I had the same problem.

I solved the problem by cd to my root. Then install ionic as root admin.

$ sudo npm install -g cordova ionic

then run

$ ionic

to see if its working.

Hope that helps

ionic cordova run doesn't work after update to Ionic CLI 5 and native , After having updated to Ionic CLI 5 and updated native-run too The received +​0ms ionic:utils-process onBeforeExit handler: running 3  Hello @SeanH911, have a warm welcome to the Fitbit app, it's great to have you on board.. If your Ionic is not receiving Notifications, please make sure Notifications are ON in the tracker itself, swipe right while on the clock face and under Notifications make sure "Receive from phone" is selected.

Someone might run into this after trying to change the global library directory of npm to a folder they have permissions to write to in order to be able to install global libs without root permissions.

In that case you might have forgotten to add the new folder to you PATH environment variable.

The whole process of fixing Permissions can be found here.

in case that source disappears here is a copy of the steps:

There are times when you do not want to change ownership of the default directory that npm uses (i.e. /usr) as this could cause some problems, for example if you are sharing the system with other users.

Instead, you can configure npm to use a different directory altogether. In our case, this will be a hidden directory in our home folder.

  1. Make a directory for global installations:

    mkdir ~/.npm-global

  2. Configure npm to use the new directory path:

    npm config set prefix '~/.npm-global'

  3. Open or create a ~/.profile file and add this line:

    export PATH=~/.npm-global/bin:$PATH

  4. Back on the command line, update your system variables:

    source ~/.profile

Test: Download a package globally without using sudo. npm install -g jshint

Instead of steps 2-4 you can also use the corresponding ENV variable (e.g. if you don't want to modify ~/.profile):

NPM_CONFIG_PREFIX=~/.npm-global npm install -g jshint

if you just follow these steps and reinstall all the Global libs there is a good chance that it will start working for you anyways...

Just remember that if you do this, you will save your global libs into the folder created in step 1 instead of the default location in /usr/local or just /usr (depending on your OS flavor i guess?)

"ionic serve" command does not work in Windows environment , This is the error that running ionic serve in cmd.exe gives: ionic serve handler: process.exit received +0ms ionic:cli-framework:utils:process not useful for libraries. npm doesn't use them when installing the Ionic CLI. When you use the Do Not Disturb setting on your phone, you don’t receive notifications. For Fitbit band models like Charge and Inspire, hold the side button and go to the control menu; For Fitbit smartwatches like the Versa or Ionic, swipe down your control center; Make sure you allow the Fitbit app to run in the background on your phone

First Solution

I recently ran into this issue and the only solution that worked for me was to uninstall both ionic and cordova.

npm uninstall -g cordova
npm uninstall -g ionic

Then just reinstall

npm install -g cordova
npm install -g ionic 

Second Solution

I ran into this issue again! This time check your environmental variables.

Run npm bin -g and check if the path returned is in your environmental variables. For me, it prompted that it was not found in the terminal output. I added that path to the environmental variables and restarted the terminal. From there everything started to work again. (source)

[Solved] Unable to run ionic 1 project with ionic 3 CLI, I did try copy app-scripts folder from ionic3 project and try to run ionic build ios / android and receive error tsconfig.json': ENOENT: no such file or directory. ionic cordova resources [<platform>] [options] Generate perfectly sized icons and splash screens from PNG source images for your Cordova platforms with this command. The source image for icons should ideally be at least 1024×1024px and located at resources/icon.png .

[SOLVED] Problem to serve an app in ionic1 with installed Ionic CLI , If this doesn't work (please post the output here anyway!) please run this command to Run ionic info in my ionic v.1 directory project i receive Know you not that they which run in a race run all, but one receives the prize? So run, that you may obtain. they. Hosea 12:10 I have also spoken by the prophets, and I have multiplied visions, and used similitudes, by the ministry of the prophets.

How to Get Started with Ionic and Angular, The app on a mobile device is running inside a webview, but of course you don't The next two files (tsconfig.json, tslint.json) are related to TypeScript and how it gets compiled. Note: If you are not on a Mac you can't build your app for iOS! Next, create an Ionic Angular app that uses the “Tabs” starter template and adds Capacitor for native functionality: $ ionic start photo-gallery tabs --type=angular --capacitor. This starter project comes complete with three pre-built pages and best practices for Ionic development.

Firebase Push Notification in Ionic React app using Capacitor, Learn how to implement firebase push notifications in Ionic-React apps using Capacitor. So, by default, Ionic cannot run as an app in an iOS or Android device. You have to send useful information in data field of the notification to receive it  #2 Run: Ionic blank app in a local production server. This time we will build our app with performance in mind. By running ionic build --prod we will be executing the build process with performance enhancements, and will get the outputs on our /www folder.

  • Couple of questions. Are you using bash or some other linux shell? Can you run: npm list -g --depth=0 to see if the ionic module is listed and if so, post the path? Most likely the place where the ionic binary is not in your PATH environment variable.
  • If you followed the instructions here to "fix your npm permissions" and setup a different folder (one your user actually owns) to save the global libs to. You might want you global lib directory somewhere else then /usr/local.
  • I added an answer with more details and instructions how to make it work here
  • aww yeah, first real contribution to the stackoverflow
  • Wow, thanks for the answer, that is unique solution for me
  • you broke my npm
  • For me it was at /Users/myusername/.node/lib/node_modules/ionic/bin/ionic
  • this would not work for some people's mac. urs has special permission policy. npm config set prefix /usr/local
  • I did find my ionic file inside /usr/local/lib/node_modules/ionic/bin/ionic and deleted the file inside /usr/bin/ionic to run your command. The problem was not solved. I fixed the problem by using every ionic command with sudo ionic. I think that I will figure out the problem soon, but it may be connected with the $PATH Variable. I do not have npm in my path variable.
  • You might not want to install ionic using root permissions, as the downloaded stuff will be owned by root, which can cause problems using ionic later, instead you should do what the official docs say, and make yourself the owner of your global lib directory of npm:
  • I added an answer with more details here
  • Worked for me. Great!.
  • Running 'npm bin -g' then setting the 'export PATH="/usr/local/Cellar/node/11.7.0/bin"' to the correct path did it for me. Thanks!