naofireblade / homebridge-weather-plus

A comprehensive weather plugin for homebridge.
MIT License
313 stars 63 forks source link

npm WARN deprecated ... request has been deprecated #150

Open RCdiy opened 4 years ago

RCdiy commented 4 years ago

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated text-encoding@0.6.4: no longer maintained

Using web ui homebridge pi sd card image

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

rcoleman8806 commented 4 years ago

Also just hit this issue when installing

sriv-anant21 commented 4 years ago

getting same issue

mbierman commented 4 years ago

Confirmed here too.

Nisse57 commented 3 years ago

getting same issue, using HOOBS 3.2.6

Pelagious commented 3 years ago

Same

barnwern commented 3 years ago

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

Jaco-VanderMerwe commented 3 years ago

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 request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated text-encoding@0.6.4: 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
mkellsy commented 3 years ago

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

daydy16 commented 3 years ago

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

mkellsy commented 3 years ago

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.