Louis
Louis

Reputation: 2608

app-scripts library corrupted my Ionic config

I tried to install app-scripts and I get this error. It messed up my environment and I can't use ionic serve any more.

$ npm install @ionic/app-scripts --save-dev
ionic-hello-world@ /home/louisro/Documents/mobileApps/BoardLine/ionic2_version
├── @ionic/[email protected] 
└── UNMET PEER DEPENDENCY [email protected]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN @ionic/[email protected] requires a peer of typescript@~2.2.1 but none was installed.


$ ionic info

Your system information:

Cordova CLI: 6.5.0 
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.2.1
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v7.4.0
Xcode version: Not installed

Upvotes: 0

Views: 224

Answers (2)

Louis
Louis

Reputation: 2608

npm install [email protected] --save-dev 

solved it.

Upvotes: 0

0x1ad2
0x1ad2

Reputation: 8062

Looks like you've got an UNMET PEER DEPENDENCY try to pin typescript to the compatible version in your package.json.

@ionic/[email protected] requires a peer of typescript@~2.2.1 but none was installed.

Try to execute the following command after pinning the version to be sure node_modules are reinstalled rm -rf node_modules && npm cache clean && npm install

Upvotes: 1

Related Questions