_Original issue by @MrBokeh on 2019-07-29T14:21:06Z_
Ionic version:
[x] 4.x
Current behavior:
NPM install ionic globally:
npm i -g ionic
npm WARN deprecated [email protected]: Please note that v5.0.1+ of superagent removes User-Agent header by default, therefore you may need to add it yourself (e.g. GitHub blocks requests without a User-Agent header). This notice will go away with v5.0.2+ once it is released.
/usr/local/bin/ionic -> /usr/local/lib/node_modules/ionic/bin/ionic
+ [email protected]
Expected behavior:
No warning?
Steps to reproduce:
npm i -g ionic
Related code:
insert short code snippets here
Other information:
Ionic info:
insert the output from ionic info here
Getting this warning too with fresh install of nodejs and ionic
Steps to Reproduce:
npm i -g ionic
Output:
npm WARN deprecated [email protected]: Please note that v5.0.1+ of superagent removes User-Agent header by default, therefore you may need to add it yourself (e.g. GitHub blocks requests without a User-Agent header). This notice will go away with v5.0.2+ once it is released.
My ionic info:
Ionic:
Ionic CLI : 5.2.5
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v10.16.3
npm : 6.10.3
OS : Windows 10
Other Information:
npm view superagent version returns version 5.1.0
This warning is okay. The older version of superagent works very well. If you're curious, the PR to update it is here: https://github.com/ionic-team/ionic-cli/pull/4034
okay, the problem is not with ionic.
Here's a fix I came up with. First clear the cache from npm.
npm cache clean --force
after that run
npm install -g ionic
if you're on mac include sudo.