Viras- / cordova-plugin-powermanagement

Cordova PowerManagement plugin
Apache License 2.0
54 stars 106 forks source link

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

Open aleksvidak opened 6 years ago

aleksvidak commented 6 years ago

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.

arcadius commented 6 years ago

Yes, same issue here

myemuk commented 6 years ago

Issue is still there

SoyUnEmilio commented 6 years ago

Same hrre

jesper-bylund commented 6 years ago

Yup, same here.

ghost commented 6 years ago

Same Issue !

emcniece commented 5 years ago

Workaround: install from Github.

cordova plugin add https://github.com/Viras-/cordova-plugin-powermanagement.git
mik13ST commented 3 years ago

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');
factorycreacom commented 2 years ago

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