when I create fresh ionic2 project. There is no index.html file in www folder. so when I run app it immediately get crashed. for that I found solution to use ionic build.
->ionic build creates index.html file and neccessary folder.
But when I upgrade npm 3.10.10 to npm5. ionic build does not work.
->In npm 3.10.10 I am unable to install plugins.
example : npm install --save @ionic/storage
You’re running npm 3.10.10.
yes…if i upgrade its version to npm5. ionic build will not work.
That is generally not true and if it is the case for you, please post the error message you are getting and we will help you fix it.
One solution: Uninstall your node, install
nvm-windows when you are using Windows), install a new node with this, then install
cordova again and try your command again. The problem should be gone.
yes I uninstalled it. and reinstalled it. and upgrated version to 5.0.2 .
Now its working fine with plugin and “ionic build” works properly.
thanks for your suggestion