Ionic installation on macOs

和自甴很熟 提交于 2019-12-11 15:36:30

问题


I am trying to install ionic and every time I try to install it says:

npm WARN deprecated node-uuid@1.4.8: Use uuid module instead

and I can't even check ionic -v to check version as it is not installed. I can check npm version as it is installed correctly.

➜  ~ node -v
v8.7.0

➜  ~ npm -v
5.4.2

➜  ~ npm install -g cordova ionic
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
/Users/bilaltariq/.npm-packages/bin/cordova -> /Users/bilaltariq/.npm-packages/lib/node_modules/cordova/bin/cordova
/Users/bilaltariq/.npm-packages/bin/ionic -> /Users/bilaltariq/.npm-packages/lib/node_modules/ionic/bin/ionic
+ cordova@7.1.0
+ ionic@3.13.2
updated 2 packages in 27.258s

回答1:


Had the same problem. The fix is to install ionic CLI globally:

As the developer user execute the following from your ionic project root directory:

npm uninstall ionic

then as user "root" execute the following:

npm i -g ionic@latest

after that, you should be able to use the new ionic CLI version 4.12.0



来源:https://stackoverflow.com/questions/46862763/ionic-installation-on-macos

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!