Popular issues faced and solutions
The development environment set up for Ionic Hybrid App development is a lengthy and cumbersome process. It is evident that you may face some issues in installing and setting up all these systems. This section mentions the most common and popular issues faced along with their solutions so that you do not get stuck somewhere:
- Permission issue [Mac or Linux]: A lot of the time, the user you are logged in as does not have permission to alter files and directories while creating projects. This problem can occur in npm
install
commands and Ionicstart
commands.- Solution: Use a
sudo
keyword before any command to run in privileged mode.
- Solution: Use a
- Unable to find npm global modules: If you have installed a global npm package using
-g
flag but are unable to use it, you may need to add the npm directory to your path in order to invoke globally installed modules.- Solution: Add the npm directory location to your path. On Windows, npm can usually be found at
C:\Users\username\AppData...
- Solution: Add the npm directory location to your path. On Windows, npm can usually be found at