升级为离子2后无法运行离子发球

时间:2021-05-31 19:23:30

so i have an old ionic v1 project that was done. i have since moved on to ionic v2 and now i wanted to go back to the old v1 project to change some stuff but i'm unable to run ionic serve. when i run 'ionic serve' in the v1 project root.. i get the following...

所以我有一个旧的离子v1项目已完成。我已经转移到离子v2,现在我想回到旧的v1项目改变一些东西,但我无法运行离子服务。当我在v1项目根目录中运行'ionic serve'时,我得到以下内容......

Looks like a fresh checkout! No ./node_modules directory found. Would you like to install project dependencies? (Y/n)

it looks like its looking for the node_modules folder, but i never remember having the node_modules folder in my v1 project. there's also a file called package-lock.json file in the root that i'm not familiar with. will downgrading the ionic cli fix this? my current ionic info is...

看起来它正在寻找node_modules文件夹,但我永远不记得在我的v1项目中有node_modules文件夹。在根目录中还有一个名为package-lock.json的文件,我不熟悉。降级离子cli会降低这个吗?我目前的离子信息是......

@ionic/cli-utils  : 1.9.2
ionic (Ionic CLI) : 3.9.2

System:

系统:

Node : v6.11.2
npm  : 5.3.0
OS   : Windows 10

1 个解决方案

#1


0  

Upgrading an old project to Ionic2, you'll discover the project folder's organization to be a bit different, including some new files.

将旧项目升级到Ionic2,您会发现项目文件夹的组织有点不同,包括一些新文件。

What happened when you responded Y to install project dependencies? Maybe there are some npm modules that your project needs?

当您回复Y以安装项目依赖项时发生了什么?也许您的项目需要一些npm模块?

#1


0  

Upgrading an old project to Ionic2, you'll discover the project folder's organization to be a bit different, including some new files.

将旧项目升级到Ionic2,您会发现项目文件夹的组织有点不同,包括一些新文件。

What happened when you responded Y to install project dependencies? Maybe there are some npm modules that your project needs?

当您回复Y以安装项目依赖项时发生了什么?也许您的项目需要一些npm模块?