Node.js 在PowerShell中运行Ionic命令时出现问题

Node.js 在PowerShell中运行Ionic命令时出现问题,node.js,cordova,ionic-framework,Node.js,Cordova,Ionic Framework,当我尝试在PowerShell中运行ionic命令时,我得到一个错误 ionic:术语“ionic”不能识别为cmdlet、函数、脚本文件或可操作程序的名称。检查 名称的拼写,或者如果包含路径,请验证路径是否正确,然后重试。 第1行字符:1 +离子的 + ~~~~~ +CategoryInfo:ObjectNotFound:(ionic:String)[],CommandNotFoundException +FullyQualifiedErrorId:CommandNotFoundExcepti

当我尝试在PowerShell中运行ionic命令时,我得到一个错误

ionic:术语“ionic”不能识别为cmdlet、函数、脚本文件或可操作程序的名称。检查 名称的拼写,或者如果包含路径,请验证路径是否正确,然后重试。 第1行字符:1 +离子的 + ~~~~~ +CategoryInfo:ObjectNotFound:(ionic:String)[],CommandNotFoundException +FullyQualifiedErrorId:CommandNotFoundException

有人知道我怎么解决这个问题吗?我是否需要向环境变量添加路径变量

我已经成功地安装了node.js,我相信我已经成功地安装了爱奥尼亚和科尔多瓦,并且使用命令“npm install-g爱奥尼亚科尔多瓦”

“npm安装-g”的输出如下

C:\Users\username\AppData\Roaming\npm\ionic->C:\Users\username\AppData\Roaming\npm\node\u modules\ionic\bin\ionic ionic@1.3.20C:\Users\username\AppData\Roaming\npm\node\U modules\ionic ├── 代理-middleware@0.7.0 ├── 连接-livereload@0.5.2 ├── progress@1.1.7 ├── open@0.0.5 ├── colors@0.6.2 ├── ncp@0.4.2 ├── underscore@1.7.0 ├── crc@3.2.1 ├── async@0.9.0 ├── q@1.0.1 ├── semver@4.3.1 ├── shelljs@0.2.6 ├── 交叉-spawn@0.2.3(lru)-cache@2.5.0) ├── cli-table@0.3.1 (colors@1.0.3) ├── 事件-stream@3.0.20(溪流-combiner@0.0.4, duplexer@0.1.1, from@0.1.3,地图-stream@0.0.5,暂停-stream@0.0.11分裂 @0.2.10, through@2.3.6) ├── finalhandler@0.2.0(逃跑-html@1.0.1, debug@2.0.0) ├── 形式-data@0.1.4 (mime@1.2.11,合并-stream@0.0.7) ├── optimist@0.6.0 (wordwrap@0.0.2, minimist@0.0.10) ├── connect@3.1.1(utils)-merge@1.0.0, parseurl@1.3.0, debug@1.0.4, finalhandler@0.1.0) ├── 视差-ionic@1.1.3(json)字符串化-safe@5.0.0,控制台日志-level@1.0.0, stackman@0.2.2,之后-all@2.0.1) ├── npm@2.1.3 ├── 微小lr-fork@0.0.5 (debug@0.7.4, qs@0.5.6,费伊-websocket@0.4.4, noptify@0.0.3) ├── 服侍-static@1.7.1(逃跑-html@1.0.1,utils-merge@1.0.0, parseurl@1.3.0, send@0.10.1) ├── xml2js@0.4.4 (sax@0.6.1, xmlbuilder@2.6.2) ├── unzip@0.1.9 (setimmediate@1.0.2,可读-stream@1.0.33, pullstream@0.4.1,匹配-stream@0.0.2, binary@0.3.0,fstream @0.1.31) ├── prompt@0.2.12 (revalidator@0.1.8, pkginfo@0.3.0, read@1.0.5, winston@0.6.2, utile@0.2.1) ├── request@2.51.0(json)字符串化-safe@5.0.0, caseless@0.8.0永远-agent@0.5.2,aws-sign2@0.5.0, stringstream@0.0.4, 隧道-agent@0.4.0,oauth-sign@0.5.0,节点-uuid@1.4.3, qs@2.3.3,默剧-types@1.0.2,合并-stream@0.0.7,硬饼干@ 0.12.1, bl@0.9.4,http-signature@0.10.1,表格-data@0.2.0, hawk@1.1.1) ├── 乙烯基-fs@0.3.7(优雅的-fs@3.0.6, lodash@2.4.1,带-bom@1.0.0, vinyl@0.4.6, mkdirp@0.5.0, through2@0.6.3,环球街 ream@3.1.18,glob-watcher@0.0.6) ├── archiver@0.5.1 (lodash@2.4.1,可读-stream@1.1.13, lazystream@0.1.0,拉链-stream@0.1.4,档案-utils@0.1.5) └── gulp@3.8.8(漂亮-hrtime@0.2.2, interpret@0.3.10, deprecated@0.0.1, archy@0.0.2, minimist@1.1.1, semver@3.0.1,平铺
ify@1.0.0, chalk@0.5.1, orchestrator@0.3.7,大口喝-util@3.0.4, liftoff@0.12.1)我发现了我的错误。我缺少system32的路径变量。谢谢你的帮助

能否提供
node-v
npm-v
ionic-v
的输出节点版本为v0.12.2。npm版本是2.7.4。如果我尝试使用ionic-v命令,我会得到与上面相同的错误。谢谢您能否再次尝试安装cli。此外,您还可以提供CLI的输出
npm install-gionic
我已经在问题中添加了npm install-gionic的输出。我将尝试重新安装客户端。您有什么版本的windows?