Getting error in ionic 2 framework installing error - node.js

Today I want to start with ionic Framework but soon I realize that I am unable to install Ionic framework properly getting error
First I install nods js in my computer. (perfectly)
Then I open node js command prompt and add this line npm
install -g cordova ionic and get
Then I run this line ionic start myApp blank and get this error
Then I try to run my app so I get this error

Related

I am getting sopme error while installing Angular 14.2.9?

I was trying to install Angular using: npm i #angular/cli#14.2.9 but when I check the version using ng v; the Command Prompt shows that it is not a recognized command.
Later when I install angular using: npm install -g angular-cli#latest; I am also getting various errors. Please help !!

Error during npm start/expo start on expo reactive native Project

I am trying to run react native expo, it installed (via 'npm install -g expo-cli') globally and I created Project ('expo init react-project') and works fine. But i wend inside folder and run npm start / expo start , appears Errors as shown in picture. I also get Error on 'expo'.
I also deleted node_modules Folder and reinstall it (npm install) but didn't help.
Like you can see in Images, I have latest node,npn and Git versions. And its strange that , although I have installed expo globally, i get expo version on E:\ but not in subfolder (detail in screenshots).
Could anybody help me out?
Error on expo:
Error on npm start / expo start:
Latest Versions:

Node module errors while Ionic Serve

Everything working well but I don't know what happened, Now when I trying to hit Ionic Serve command it gives error and I have tried with different ionic version and node and npm version to fix the error but the issue remains same even I have tried to start from the fresh project but still no luck. I have attached the error page If anyone helps me it will be really grateful.
Versions that I have installed in my system -
Node = v10.15.3
Npm = 6.4.1
Ionic = CLI 4.12.0
Delete your node module folder which is inside your project then open your terminal and got to inside your project and use this following command "npm install --force" then "npm rebuild node-sass --force".

Error while starting a blank app with Ionic framework

I recently installed ionic framework.
My laptop already had GIT, node and npm installed and all of them have been updated to latest.
When running ionic start my IonicApp1 tabs following the Get Started instruction on their website, I ran into the following error and this stopped from creating the app.
Any idea? Thanks!
Ionic recently changed its cli try ionic start myproject blank --type ionic1 for a blank demo app

Ionic start give error: There was an error with the spawned command: npminstall

I'm trying to create a mobile app with ionic and cordova but when I launch the comand
ionic start {{appname}} blank
after the download npm give me
Error with start undefined
Error Initializing app: There was an error with the spawned command: npminstall
There was an error with the spawned command: npminstall
I can see that the download is completed because I can see the generated folders. I followed all the suggest I found on the web like update node and npm but nothing works.
Here are the version of npm, node, cordova and ionic
ionic 2.2.1
cordova 6.5.0
npm 4.4.1
node 6.10.0
Other little warning:
I don't know why after all the upgrade when i launch
ionic -v
I've got this:
******************************************************
Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:
Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova`
******************************************************
2.2.1
even if the cordova version is > 4.2.0 but I really don't think that this is the primary problem. Any ideas?
EDIT:
I'm working on windows 7
I found the solution!
I tried to lunch the command
ionic start app blank --verbose
and as before it stopped at npminstall. The problem were that verbose doesn't told me the real problem.
I moved inside the folder downloaded by Ionic and I launch
npm install --verbose
and here he told me that the problem were the https proxy configuration.
So if the error gave by Ionic is just
There was an error with the spawned command: npminstall
just go inside the downloaded folder and launch
npm install --verbose
for check the real problem
Uninstall all (ionic, cordova, nodejs).
Install nodejs LTS version using this URL - https://nodejs.org/en/
Install ionic and cordova using this URL - https://ionicframework.com/docs/v2/intro/installation/
Also Reinstall Git and when it asks Adjusting your PATH environment select Use Git from the Windows Command Prompt.
When You install ionic and cordova open cmd as admin.
Then Run command in ionic start myApp blank --v2
I figured how to solve the dependency warning problem
cordova -v
and then you get a question like :
May Cordova anonymously report usage statistics to improve the tool over time?
say yes.then fixed warning problem.
then install npm globally
npm install -g npm
create a app without installing its packages
ionic start app --v2 --skip-npm
seems ok till now?then
cd app
install packages
npm install --save
done!try to start your ionic app
ionic serve

Resources