question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ionic serve: @ionic/app-scripts isn't installed in this project, but it is.

See original GitHub issue

Description: ionic serve: @ionic/app-scripts isn’t installed in this project, but it is. I started having the issue right after upgrading ionic-cli

Steps to Reproduce: Update from ionic@3.9.2 to ionic@4.0.1 On a project created with ionic@3.9.2

Output:

ERROR] @ionic/app-scripts is required for ionic serve to work properly.

        Looks like @ionic/app-scripts isn't installed in this project.

        This package is required for ionic serve in ionic/angular 4 projects.

ioni My ionic info: I was downgrading while creating this question…Didn’t see this. Sorry. This is the info after downgrade:

cli packages: (C:\nvm\v6.14.2\node_modules)

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

global packages:

    Cordova CLI : not installed
    Gulp CLI    : not installed globally

local packages:

    @ionic/app-scripts : 3.1.10
    Cordova Platforms  : none
    Ionic Framework    : ionic-angular 3.9.2

System:

    Node : v6.14.2
    npm  : 3.10.10
    OS   : Windows 10

Other Information: When I downgraded I simply ran npm i -g ionic@3.9.2

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
imhoffdcommented, Jul 31, 2018

Thank you @devcenter

Does this solution work for anyone else, then?

rm -rf node_modules package-lock.json
npm install
0reactions
imhoffdcommented, Aug 2, 2018

It is not advisable to run npm install (or many other commands) with sudo or administrator rights. Especially running npm install with admin rights, because it writes thousands of files that are not owned by your user, leading to further permission errors.

Errors that look like they’re related to permission errors are caused by invalid permissions. I would amend @Jordi-Carrasco’s steps by only removing files and folders with administrator rights and running npm install as your own user.

The solution to this issue is here: https://github.com/ionic-team/ionic-cli/issues/3399#issuecomment-409279484

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR @ionic/app-scripts is required for ionic serve to work ...
[ERROR] @ionic/app-scripts is required for ionic serve to work properly. Looks like @ionic/app-scripts isn't installed in this project. This package is required ...
Read more >
Error when installing @ionic/app-scripts or build
I know that @ionic/app-scripts is not installed anymore but when I try to ... Looks like @ionic/app-scripts isn't installed in this project.
Read more >
@ionic/app-scripts - npm Package Health Analysis | Snyk
We found indications that @ionic/app-scripts is an Inactive project. See the full package health analysis to learn more about the package maintenance status....
Read more >
@ionic/app-scripts | Yarn - Package Manager
Helper scripts to get Ionic apps up and running quickly (minus the config overload). To get the latest @ionic/app-scripts , please run: npm...
Read more >
Upgrading to Ionic 4 - Medium
Uninstall the existing ionic-angular package. You won't be needing @ionic/app-scripts either anymore. Finally, you're going to install @ionic/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found