ionic serve: @ionic/app-scripts isn't installed in this project, but it is.
See original GitHub issueDescription: 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:
- Created 5 years ago
- Comments:21 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you @devcenter
Does this solution work for anyone else, then?
It is not advisable to run
npm install
(or many other commands) withsudo
or administrator rights. Especially runningnpm 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