homebridge-weather-plus icon indicating copy to clipboard operation
homebridge-weather-plus copied to clipboard

npm WARN deprecated ... request has been deprecated

Open RCdiy opened this issue 4 years ago • 10 comments

npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: no longer maintained

Using web ui homebridge pi sd card image

Screen Shot 2020-06-30 at 3 30 55 PM

RCdiy avatar Jun 30 '20 19:06 RCdiy

Also just hit this issue when installing

rcoleman8806 avatar Jul 01 '20 02:07 rcoleman8806

getting same issue

sriv-anant21 avatar Jul 06 '20 16:07 sriv-anant21

Confirmed here too.

mbierman avatar Jul 14 '20 07:07 mbierman

getting same issue, using HOOBS 3.2.6

Nisse57 avatar Sep 27 '20 09:09 Nisse57

Same

Pelagious avatar Dec 01 '20 05:12 Pelagious

Has this been resolved - cannot install the Weather plus plugin in HOOBS?

barnwern avatar Jan 01 '21 11:01 barnwern

Same issue, and I'm not using HOOBS. Using the homebridge-config-ui-x. But I get the same error if I do it directly via SSH as per the installation instructions.

pi@RaspberryPi:~/homebridge $ npm install -g homebridge-weather-plus
npm WARN npm npm does not support Node.js v10.23.1
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: no longer maintained
npm WARN checkPermissions Missing write access to /usr/local/lib
npm ERR! path /usr/local/lib
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib'
npm ERR!  { [Error: EACCES: permission denied, access '/usr/local/lib']
npm ERR!   stack:
npm ERR!    'Error: EACCES: permission denied, access \'/usr/local/lib\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib' }
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!     /home/pi/.npm/_logs/2021-02-03T15_10_27_071Z-debug.log

Jaco-VanderMerwe avatar Feb 03 '21 15:02 Jaco-VanderMerwe

https://github.com/request/request/issues/3142

mkellsy avatar May 18 '21 14:05 mkellsy

Had the same issue when installing via the ui. I fixed it by installing via command line (docker exec ...) and then it showed my the real error message. After running: "npm install --save --force homebridge-weather-plus@latest" it works for me

daydy16 avatar Aug 02 '21 17:08 daydy16

I have looked into this. The geo-tz module is very large and takes a long time to download especially on slower connections.

If you modify these files; apis/openweathermap.js apis/yahoo.js

And use the moment-timezone module that's already included in this project. This would allow you to remove the geo-tz dependency and make this a much smaller plugin.

The only downside of this would be you can only get the time zone of the local device. Or you can add a time zone setting in the config to override.

mkellsy avatar Aug 03 '21 03:08 mkellsy