我安装了 Ionic 2 和 cordova,但它没有显示在 ionic 信息上。所以我无法在 Windows 系统上运行我的 ionic 项目。
这是 ionic 信息
的输出:
E:\Sandbox\ionic\demoApp>ionic info
******************************************************
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`
******************************************************
Your system information:
Cordova CLI: Not installed
Ionic Framework Version: 2.0.1
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v6.9.5
Xcode version: Not installed
******************************************************
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`
******************************************************
E:\Sandbox\ionic\demoApp>cordova -v
4.3.1
最佳答案
您需要检查这里是否存在:
C:\Users\yourPC\AppData\Roaming\npm
并且您还需要设置相同的环境变量,确保您的变量名称、“Path”都有 npm 和 JDK 的值。 在此过程之后您的台式机/笔记本电脑可能需要重新启动
关于node.js - Ionic 2 已安装,但在 ionic 信息中未显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42241530/