cordova-plugin-powermanagement icon indicating copy to clipboard operation
cordova-plugin-powermanagement copied to clipboard

npm ERR! 404 'at.gofg.sportscomputer.powermanagement' is not in the npm registry.

Open aleksvidak opened this issue 7 years ago • 8 comments

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.

aleksvidak avatar Dec 27 '17 22:12 aleksvidak

Yes, same issue here

arcadius avatar Jan 22 '18 10:01 arcadius

Issue is still there

myemuk avatar Feb 06 '18 12:02 myemuk

Same hrre

SoyUnEmilio avatar Mar 27 '18 20:03 SoyUnEmilio

Yup, same here.

jesper-bylund avatar May 14 '18 09:05 jesper-bylund

Same Issue !

ghost avatar Jul 13 '18 05:07 ghost

Workaround: install from Github.

cordova plugin add https://github.com/Viras-/cordova-plugin-powermanagement.git

emcniece avatar Jan 23 '19 20:01 emcniece

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');

mik13ST avatar Jan 07 '21 11:01 mik13ST

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

factorycreacom avatar May 09 '22 08:05 factorycreacom