ionic-team / ionic-app-scripts

App Build Scripts for Ionic Projects
http://ionicframework.com/
MIT License
609 stars 300 forks source link

App-scripts is removed when I add a platform. #1532

Open cristianireyes opened 5 years ago

cristianireyes commented 5 years ago

Note: for support questions, please use one of these channels:

https://forum.ionicframework.com/ http://ionicworldwide.herokuapp.com/

Short description of the problem:

When I run the command ionic cordova platform add android the dependency app-scripts is removed from my node_modules

What behavior are you expecting?

I'm trying to add the android platform to my ionic project, but when I run the command, my app-scripts dependency is removed from the node_modules folder and fails.

Steps to reproduce:

  1. npm install
  2. ionic cordova platform add android
  3. [ERROR] Error with .\node_modules\@ionic\app-scripts\package.json file: FILE_NOT_FOUND
insert any relevant code between the above and below backticks

Which @ionic/app-scripts version are you using? I currently have this configuration: cli packages: (C:\Users\cristian\AppData\Roaming\nvm\v8.0.0\node_modules) @ionic/cli-utils : 1.19.3 ionic (Ionic CLI) : 3.20.1 System: Node : v8.0.0 npm : 5.0.0 OS : Windows 10

@ionic/app-scripts version: 3.2.2

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc) My package.json: package.json.zip