cordova-plugin-powermanagement
cordova-plugin-powermanagement copied to clipboard
npm ERR! 404 'at.gofg.sportscomputer.powermanagement' is not in the npm registry.
Hello there, while trying to build my project for IOS, I get the following error. Did someone had the similar issue? Error: code E404 npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/at.gofg.sportscomputer.powermanagement npm ERR! 404 npm ERR! 404 'at.gofg.sportscomputer.powermanagement' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.
Yes, same issue here
Issue is still there
Same hrre
Yup, same here.
Same Issue !
Workaround: install from Github.
cordova plugin add https://github.com/Viras-/cordova-plugin-powermanagement.git
That isn't a permanent solution and has to be run every time a clean build is done.
If you are using Cordova, you could define a hook. See https://cordova.apache.org/docs/en/latest/guide/appdev/hooks/.
This worked for me:
config.xml
:
...
<preference name="SplashScreenDelay" value="3000" />
+ <hook src="hooks/beforePrepare.js" type="before_prepare" />
<platform name="android">
...
hooks/beforePrepare.js
:
const { execSync } = require('child_process');
execSync('ionic cordova plugin add https://github.com/Viras-/cordova-plugin-powermanagement.git');
That isn't a permanent solution and has to be run every time a clean build is done.
If you are using Cordova, you could define a hook. See https://cordova.apache.org/docs/en/latest/guide/appdev/hooks/.
This worked for me:
config.xml
:... <preference name="SplashScreenDelay" value="3000" /> + <hook src="hooks/beforePrepare.js" type="before_prepare" /> <platform name="android"> ...
hooks/beforePrepare.js
:const { execSync } = require('child_process'); execSync('ionic cordova plugin add https://github.com/Viras-/cordova-plugin-powermanagement.git');
Working for me! Thanks