[英]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.