howardjones / network-weathermap

Network Weathermap draws diagrams from data
http://www.network-weathermap.com/
MIT License
426 stars 95 forks source link

WARN deprecated bower@1.8.4: We don't recommend using Bower for new projects. #158

Closed netniV closed 5 years ago

netniV commented 5 years ago

Hey Howie,

Went to start testing out the latest version you have and following the dev instructions on the README.md, npm's installation of Bower gives a warning:

Please consider Yarn and Webpack or Parcel. 
You can read how to migrate legacy project here: 

https://bower.io/blog/2017/how-to-migrate-away-from-bower/

Have you considered this?

howardjones commented 5 years ago

The thing is, Yarn, Webpack and Parcel are for building single-page javascript apps. I just use bower as a convenient way to get the latest jquery and a few other things. As things move forward, the need for it will probably go away - either it's a Cacti-specific thing, and it can use Cacti's jquery, or it'll be part of the new React stuff, which basically is a single-page app.

howardjones commented 5 years ago

Looking at this now, it's actually only the editor that needs these modules.

netniV commented 5 years ago

An update to the .bowerrc is needed now due to the depreciation.

User smilies posted:

I did, but it was throwing an error. I assumed because of the deprecation.

After researching more, I found this:

"Bower is deprecating their registry hosted with Heroku. http://bower.herokuapp.com/ Will not be accessible anymore or it might be down intermittently, therefore, forcing users to a new registry."

After adding this to the .bowerrc, I was able to get it to run successfully

{
  "registry": "https://registry.bower.io"
}

Thank you for pointing me in the right direction.

https://forums.cacti.net/viewtopic.php?f=16&t=59327&p=275798&sid=b57418cfeeb6e27ad22cac1906ba7c6e#p275798

howardjones commented 5 years ago

9147d6d0e77a2765cc409212dd13a2e044e13c1f includes changes to use npm instead of bower. This doesn't really work well, since npm doesn't actually do the same job as bower (bower supported websites that had a bit of javascript, or even CSS libraries, npm doesn't). However, jquery is loaded that way, and since fastlivefilter isn't available in npm, that is in the repository for now, until the picker becomes a React app. All paths have been updated appropriately to reflect the new jquery location.

howardjones commented 5 years ago

Confirmed working by @pautiina