在PowerShell中发出运行Ionic命令的问题

时间:2015-04-19 13:31:21

标签: node.js cordova ionic-framework

当我尝试在PowerShell中运行离子命令时,出现错误

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

有谁知道如何解决这个问题?我是否需要在环境变量中添加路径变量?

我已经成功安装了node.js,我相信已经成功安装了Ionic和Cordova以及命令“npm install -g ionic cordova”

“npm install -g ionic”的输出位于

之下

C:\ Users \ username \ AppData \ Roaming \ npm \ ionic - > C:\ Users \用户名\应用程序数据\漫游\ NPM \ node_modules \离子\ BIN \离子 ionic@1.3.20 C:\ Users \ username \ AppData \ Roaming \ npm \ node_modules \ ionic ├──proxy-middleware@0.7.0 ├──connect-livereload@0.5.2 ├──progress@1.1.7 ├──open@0.0.5 ├──colors@0.6.2 ├──ncp@0.4.2 ├──slowcore@ 1.7.0 ├──crc@3.2.1 ├──async@0.9.0 ├──q@1.0.1 ├──semver@4.3.1 ├──helljs@0.2.6 ├──cross-spawn@0.2.3(lru-cache@2.5.0) ├──cli-table@0.3.1(colors@1.0.3) ├──vent-stream@3.0.20(stream-combiner@0.0.4,duplexer @ 0.1.1,from @ 0.1.3,map-stream @ 0.0.5,pause-stream@0.0.11,拆分 @ 0.2.10,通过@2.3.6) ├──finalhandler@0.2.0(escape-html@1.0.1,debug @ 2.0.0) ├──form-data@0.1.4(mime@1.2.11,combined-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.04,finalhandler@0.1.0) ├──opbeat-ionic@1.1.3(json-stringify-safe@5.0.0,console-log-level@1.0.0,stackman@0.2.2,after-all@2.0.1) ├──npm@2.1.3 ├──mini-lr-fork@0.0.5(debug@0.7.4,qs@0.5.6,faye-websocket@0.4.4,noptify@0.0.3) ├──service-static @ 1.7.1(escape-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,readable-stream @ 1.03.3,pullstream @ 0.4.1,match-stream @ 0.0.2,binary @ 0.3.0,fstream @ 0.1.31) ├──level@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-stringify-safe@5.0.0,caseless@0.8.0,evernce-agent@0.5.2,aws-sign2@0.5.0,stringstream@0.0.4,  tunnel-agent@0.4.0,oauth-sign @ 0.5.0,node-uuid @ 1.4.3,qs @ 2.3.3,mime-types @ 1.0.2,combined-stream @ 0.0.7,tough-cookie @ 0.12.1,bl @ 0.9.4,http-signature@0.10.1,form-data@0.2.0,hawk@1.1.1) ├──vinyl-fs@0.3.7(graceful-fs@3.0.6,lodash @ 2.4.1,strip-bom @ 1.0.0,vinyl @ 0.4.6,mkdirp @ 0.5.0,through2 @0.6.3 ,glob-st ream@3.1.18,glob-watcher@0.0.6) ├──archiver@ 0.5.1(lodash@2.4.1,readable-stream @ 1.1.1,lazystream @ 0.1.0,zip-stream @ 0.1.4,file-utils @0.1.5) └──gulp@ 3.8.8(pretty-hrtime@0.2.2,interpre @ 0.3.10,deprecated @ 0.0.1,archy @ 0.0.2,minimist @ 1.1.1,semver @ 3.0.1,tild ify @ 1.0.0,chalk @ 0.5.1,orchestrator @ 0.3.7,gulp-util @ 3.0.4,liftoff @ 0.12.1)

1 个答案:

答案 0 :(得分:1)

我发现了自己的错误。我错过了system32的路径变量。谢谢你的帮助!

相关问题