将离子1更新为离子2后无法找到离子版本(shell.js上的错误)

时间:2022-09-15 23:00:15

I am working on windows10 for my ionic1.

我正在使用windows10为我的ionic1。

I tried to install ionic2 in my pc and i am not able to create my ionic project and i am not able see the version of ionic

我试图在我的电脑上安装ionic2,我无法创建我的离子项目,我无法看到离子版本

I don't see anything related to ionic.

我没有看到任何与离子相关的东西。

When i try to get the version of ionic using this command ionic -v i am not able to

当我尝试使用此命令离子-v获得离子版本时,我无法做到

get my version i am getting the error which i have placed in the below image

得到我的版本我得到的错误,我已经放在下面的图像

things i did so far is done is command for installing ionic 2 `npm install -g

到目前为止我做的事情是安装离子2`npm install -g的命令

ionic@beta`

离子@ beta`

Before entering the above command i was able to work with ionic1 good.

在输入上述命令之前,我能够使用ionic1。

1 个解决方案

#1


0  

To see your ionic version, you have to run a terminal. Then go inside your ionic project folder and run the command : ionic --version.

要查看您的离子版本,您必须运行终端。然后进入离子项目文件夹并运行命令:ionic --version。

It should show you the current version you are using in this particular project.

它应该显示您在此特定项目中使用的当前版本。

To install ionic be sure you are login as root, if you still have issue, try to delete everything related to ionic and try again.

要安装离子,请确保以root用户身份登录,如果仍有问题,请尝试删除与离子相关的所有内容,然后重试。

#1


0  

To see your ionic version, you have to run a terminal. Then go inside your ionic project folder and run the command : ionic --version.

要查看您的离子版本,您必须运行终端。然后进入离子项目文件夹并运行命令:ionic --version。

It should show you the current version you are using in this particular project.

它应该显示您在此特定项目中使用的当前版本。

To install ionic be sure you are login as root, if you still have issue, try to delete everything related to ionic and try again.

要安装离子,请确保以root用户身份登录,如果仍有问题,请尝试删除与离子相关的所有内容,然后重试。