raspberry-wifi-conf icon indicating copy to clipboard operation
raspberry-wifi-conf copied to clipboard

bower is not getting installed on Raspberry Pi3

Open sharmmoh1983 opened this issue 6 years ago • 5 comments

I am trying to do bower install but I am getting bower command not found error

Even though I have tried sudo npm install bower -g.

But still same issue persisit

sharmmoh1983 avatar May 21 '18 11:05 sharmmoh1983

This is somewhat unrelated to this project, but could it be that your version of Node is old?

sabhiram avatar Jun 24 '18 22:06 sabhiram

the issue may be here, (node:1901) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. npm WARN deprecated [email protected]: We don't recommend using Bower for new projects. Please consider Yarn an d Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-m igrate-away-from-bower/ /usr/local/bin/bower -> /usr/local/lib/node_modules/bower/bin/bower [email protected] /usr/local/lib/node_modules/bower

pablobolomey avatar Nov 21 '18 23:11 pablobolomey

It has been so long since I messed w/ JSish package managers. If anyone has ideas or proposals on how to update this to follow best practices is welcome!

sabhiram avatar Jun 27 '19 02:06 sabhiram

If I can get this thing to run I'm going to try porting/forking it to a Vue CLI App and use Yarn as package manager and Webpack instead of bower. Maybe having the ability to change Wifi settings over MQTT via api calls too

joeelia avatar Aug 11 '19 00:08 joeelia

Hi, maybe you just solved your issue, but the process I am doing to install everything from scratch is:

	curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
	sudo apt install nodejs
	sudo apt install dnsmasq
	sudo apt install hostapd
	sudo npm update
	sudo npm install onoff
	sudo npm install bower -g
	sudo bower install --allow-root
	sudo npm run-script provision

I have this on my makefile. It installs everything needed.

leoheck avatar Nov 11 '19 14:11 leoheck