MacOS上的离子安装 [英] Ionic installation on macOs
问题描述
我正在尝试安装ionic,每次尝试安装时都说:
I am trying to install ionic and every time I try to install it says:
npm WARN不推荐使用的node-uuid@1.4.8:改用uuid模块
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
,我什至无法检查ionic -v
来检查版本,因为它尚未安装.
我可以检查npm版本,因为它已正确安装.
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
推荐答案
出现相同的问题.解决方法是全局安装离子CLI:
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
然后以"root"用户身份执行以下操作:
then as user "root" execute the following:
npm i -g ionic@latest
在那之后,您应该能够使用新的离子CLI版本4.12.0
after that, you should be able to use the new ionic CLI version 4.12.0
这篇关于MacOS上的离子安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!