An error is reported when ionic is running for the second time.

problem description

recently took over an ionic project, but I don"t know what ionic it is. My ionic sserve run prompts me that npm install @ ionic/v1-toolkit
can run successfully for the first time, but if you turn off the service and run it again, you will get an error

.

clipboard.png

"dependencies": {


},
"devDependencies": {


},
"cordovaPlugins": [


],
"cordovaPlatforms": [


],
"cordova": {


}
packgae.josn

clipboard.png,
I don"t know if there is any solution

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Jan.08,2022

look at the description should be ionic1.x, then you should use Angular1.x.

then the command line reports an error which probably means that the project is not an Angular project, so angular-cli or ionic-cli cannot compile and run, and then an error is reported.

because the future version of Angular1.x is updated a lot, I guess it may be because your local version of angular-cli or ionic-cli is relatively new and not compatible with version 1.x.

it is recommended to try the 1.x version of angular-cli. Or try it again with the ionic 1.x documentation.

ionic v1

Menu