Unable to install ionic using npm - ionic-framework

I am unable to install ionic using npm. Found the similar questions but there is no solution.
C:\Users\xxxx>npm install -g ionic
I am getting npm error.
It would be great if you provide the solution early.
Thankyou.

Related

Ionic 6: unknown option '--npm-client'

I have a project with ionic 6 and capacitor, when I run ionic serve it work like a charm and I can see the project in my browser, but then when I run ionic capacitor build android I got this error:
error: unknown option '--npm-client'
[ERROR] An error occurred while running subprocess capacitor.
I have tried to use this solution, but it didn't work.
It says to:
npm uninstall -g ionic
npm uninstall -g #ionic/cli
npm install -g #ionic/cli
but I still get the same error. Someone already got the same error before?
Thanks!
npm uninstall -g ionic
npm install -g #ionic/cli#latest
Try this
I fix it updating to the last version with this, because the upgrade commands didn't work for me.
cd /tmp
wget https://registry.npmjs.org/#ionic/cli/-/cli-6.19.0.tgz
sudo npm -g install cli-6.19.0.tgz
I had the same issue and had to upgrade from node 14 to node 16.15 to make it work.
This issue is caused by older version of ionic-cli, you should upgrade the CLI version.

Ionic and cordova(Latest versions) installation problems

I'm trying to install the Ionic framework with npm. It successfully installed. But when I try installing new versions of Ionic and Cordova, I was unable to install and Error messages are coming frequently in the ubuntu terminal.
I had a same problem but i recovered it using following command:
npm install -g cordova ionic --verbos
if its not work then you need to try yarn. you can download and install form https://yarnpkg.com/lang/en/docs/install/ this website
After install, run the following command
yarn add global cordova
yarn add global ionic

error 404 Not Found: #ionic/cli-utils#1.13.1 during npm install

After installing cordova using
npm install cordova -g
I tried to install ionic, using
npm install ionic -g
but got
404 Not Found: #ionic/cli-utils#1.13.1
combining both statements as
npm install cordova ionic -g
generates the same error.
What could be the problem here? I use Artifactory as node modules proxy by the way, which generally works well in my environment.

ionic eroor: 'libsass' bindings not found try reinstalling node-sass?

I would like to run ionic application.
I use this commandeionic serve
I get this error :
Error 'libsass' bindings not found try reinstalling node-sass?
I've tried npm rebuild node-sass
I've tried to uninstall node-sass and install glup-sass : npm install --save-dev gulp-sass but nothing works for me
Someone can help me please ?

unable to grab wrapper project: undefined in start project ionic

I Got this error "unable to grab wrapper project: undefined" in start project ionic, when I tried to create a new project in ionic framework, can anyboby help me ?
This works:
PROXY=http://myproxy.com:8081 ionic start myApp
If you have a username and password
PROXY=http://username:password#myproxy.com:8081 ionic start what
You are having problem with ionic installation.
Go thoroughly through this doc:
Install cordova if you haven't
npm install -g cordova
Install ionic
npm install -g ionic
Notice any permission related issues while installing. Make sure there were no issues (Errors generally has tag ERR)
Good luck!
For anyone else that comes across this issue the following website helped me out - http://www.jasonwatmore.com/post/2014/04/02/Ionic-Framework-Getting-ionic-start-appName-Working-Behind-a-Proxy.aspx
The error was being caused by proxy issues. As it looks like Ionic doesn't pick up the proxy from either node or git. So I followed the instructions (Step 1) on the link and that resolved my initial error.
I also had to additionally install Plugman on top of Cordova:
npm install -g plugman
And then also add the proxy setting to plugman:
plugman config set proxy http://yourproxy.com