Closed glynhudson closed 5 years ago
This could be due to Debian Stretch dropping support for NPM, the current version of NPM in the Stretch packages in version 1.4.21 which is very old. The current version on Ubuntu is 3.5.2
Here is an explanation for why npm support was dropped http://linuxbsdos.com/2017/06/26/how-to-install-node-js-lts-on-debian-9-stretch/
I will try to find a way to install newer version of npm on Stretch and will try the Docker version.
Yeah, just been trying it and that is the reason. That was a really old npm version. The instructions in the article look right for installing node, but would go for Node 10, so
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
sudo apt install -y nodejs
Whoo! Got it to work with the following steps:
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
sudo apt-get install -y nodejs
sudo chown -R pi ~/.config/
sudo chown -R pi ~/.npm
sudo chown -R pi /usr/lib/node_modules/
npm install -g openevse_wifi
openevse_wifi --endpoint /dev/ttyUSB0
The NPM install worked fine on my Ubuntu desktop but I'm having issues install on a RasPi running Raspbien Stretch with nodejs
V8.11.1
:. Any ideas what's going wrong? Sorry, I'm not very familier with install NPM modules. I tried installing from NPM and running locally: