简体   繁体   English

ionic cli:所有给出错误的命令undefined:1 SyntaxError:意外的令牌

[英]ionic cli: all commands giving error undefined:1 SyntaxError: Unexpected token

I have downloaded and installed nodejs (setup file node-v0.12.5-x64 ) in my Windows7 pc. 我已经在我的Windows7 pc中下载并安装了nodejs (安装文件node-v0.12.5-x64 )。
Also installed ionic via command: npm install -g ionic cordova 还通过命令安装ionic: npm install -g ionic cordova

All ionic commands are giving same error ie undefined:1 . 所有离子命令都给出相同的错误,即undefined:1
In command prompt it looks like below: 在命令提示符下,它如下所示:

E:\programs>ionic -v  
undefined:1  
SyntaxError: Unexpected token

I am not able to resolve after many installation and un-installation. 经过多次安装和卸载后,我无法解决。
Please help. 请帮忙。

The issue on another thread 另一个线程的问题

My C:\\Users\\USER\\ .ionic\\ionic.config had been corrupted and deleting it solved the issue 我的C:\\ Users \\ USER \\ .ionic \\ ionic.config已损坏,删除它解决了这个问题

if that's not the issue then navigate to where you have ionic installed, for me it's C:\\Users\\USER\\AppData\\Roaming\\npm\\node_modules\\ionic\\lib\\ionic 如果那不是问题,那么导航到你安装离子的地方,对我来说是C:\\ Users \\ USER \\ AppData \\ Roaming \\ npm \\ node_modules \\ ionic \\ lib \\ ionic

then open a command prompt and run "npm install -g node-debug after installing run "node-debug app.js" from that folder and step through the program to identify the error 然后打开一个命令提示符并从该文件夹运行“npm install -g node-debug安装run”node-debug app.js“并逐步执行该程序以识别错误

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 离子框架命令行错误未定义:1语法错误:意外的令牌 - ionic framework command line error undefined:1 SyntaxError: Unexpected token SyntaxError:意外的标记angular-cli - SyntaxError: Unexpected token angular-cli Angular CLI [npm install -g @angular/cli] 在 position 的 JSON 中出现错误 SyntaxError: Unexpected token } - Angular CLI [npm install -g @angular/cli] getting error SyntaxError: Unexpected token } in JSON at position 表达错误:SyntaxError: Unexpected token ':' - Express error: SyntaxError: Unexpected token ':' SyntaxError:nodejs中的意外令牌错误 - SyntaxError: Unexpected token error in nodejs 运行@hapi/hapi 给出错误“#meetings = null SyntaxError:无效或意外的令牌” - Running @hapi/hapi giving error “#meetings = null SyntaxError: Invalid or unexpected token” PUT 调用 RESTapi 给出错误“SyntaxError: Unexpected token B in JSON at position 0” - PUT call to RESTapi giving error "SyntaxError: Unexpected token B in JSON at position 0" Ionic2打字稿设备构建错误&#39;uglifyjs失败:语法错误:意外的令牌运算符«=»,预期的标点«,» - Ionic2 Typescript Device Build Error 'uglifyjs failed: SyntaxError: Unexpected token operator «=», expected punc «,»` 错误:(SystemJS) 意外标记 &lt; SyntaxError: Unexpected token &lt; at eval (<anonymous> ) 角 2 - Error: (SystemJS) Unexpected token < SyntaxError: Unexpected token < at eval (<anonymous>) Angular 2 undefined:1 undefined ^ SyntaxError: JSON 中的意外标记 u 在 position 0 - undefined:1 undefined ^ SyntaxError: Unexpected token u in JSON at position 0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM