Hi guys
Somehow I destroyed something and I can’t build our Ioniv v3 app anymore. Probably it has to do with a version which is not supported. I know that @ionic/app-scripts is not installed anymore but when I try to do it I get an error too. I need to downgrade something? Cordova? Node?
> ionic-app-scripts build --prod --target cordova --platform android
[INFO] Looks like @ionic/app-scripts isn't installed in this project.
This package is required for this command to work properly.
? Install @ionic/app-scripts? Yes
> npm i -D -E @ionic/app-scripts
npm WARN checkPermissions Missing write access to /Users/thatsme/ionic-project/node_modules
npm WARN checkPermissions Missing write access to /Users/thatsme/ionic-project/node_modules/@ionic
npm ERR! path /Users/thatsme/ionic-project/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/Users/thatsme/ionic-project/node_modules'
npm ERR! { Error: EACCES: permission denied, access '/Users/thatsme/ionic-project/node_modules'
npm ERR! stack: 'Error: EACCES: permission denied, access \'/Users/thatsme/ionic-project/node_modules\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/Users/thatsme/ionic-project/node_modules' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/thatsme/.npm/_logs/2018-10-10T09_11_10_727Z-debug.log
[ERROR] An error occurred while running subprocess npm.
npm i -D -E @ionic/app-scripts exited with exit code 243.
Re-running this command with the --verbose flag may provide more information.
I could fix it by changing the permissions. Some folders only had system access and not user access. It seems to work for now but I’m sure I have to install everything properly in the future as it’s propably a huge mess…