I just installed homeduino with --unsafe-perm and everything is working again.
sudo npm install pimatic/pimatic-homeduino --unsafe-perm
Install Sqlite3 on nodeV8 problem
I just installed homeduino with --unsafe-perm and everything is working again.
sudo npm install pimatic/pimatic-homeduino --unsafe-perm
@Ronald-van-Leuwen Thanks for the suggestion. Unfortunately it didn’t work, but again it caused an error due to missing permission.
That brought me to the search for the “note” directory :
npm config get prefix => /home/pi/.nvm/versions/node/v8.15.0
sudo npm config get prefix = /usr/local
What’s the impact?
I then tested the following call:
pi@raspberrypi:~/pimatic-test/node_modules $ npm install pimatic/pimatic-homeduino --unsafe-perm
— and without sudo the installation worked
Many thanks to all of you for your support.
How can I correct path to -note-.
I expect that the permission problems with pimatic-ping and pimatic-amazing-dash-button will be solved as soon as I have corrected the mess with the directories.
Translated with www.DeepL.com/Translator
@Smally What happens when you call sudo node --version
? It seems that you are using nvm, which has problems when used with sudo (e.g. https://stackoverflow.com/questions/21215059/cant-use-nvm-from-root-or-sudo).
pimatic-hap - pimatic HomeKit bridge
pimatic-echo - Amazon echo integration
pimatic-dash-button - Amazon dash button support
pimatic-alarm - pimatic alarm system
Like my work? Then consider a donation
Follow me: https://twitter.com/michaelkotten
@michbeck100 this id the result:
pi@raspberrypi:~ $ sudo node --version
v8.15.0
pi@raspberrypi:~ $ node --version
v8.15.0
But you are right.Because my attempts were unsuccessful, I reinstalled raspian and installed note with nvm. Looks like this is creating new problems.
@smally Using nvm with sudo is problematic. There are workarounds, though. If you are not experienced with this, you should install node 8 using the official installer, as described here.
Unfortunately you cannot do without sudo, as some plugins need root privileges.
pimatic-hap - pimatic HomeKit bridge
pimatic-echo - Amazon echo integration
pimatic-dash-button - Amazon dash button support
pimatic-alarm - pimatic alarm system
Like my work? Then consider a donation
Follow me: https://twitter.com/michaelkotten
Next try!!
Starting with a fresh installation.
wget https://nodejs.org/dist/v8.15.0/node-v8.15.0-linux-armv6l.tar.gz -P /tmp
cd /usr/local
sudo tar xzvf /tmp/node-v8.15.0-linux-armv6l.tar.gz --strip=1
sudo apt-get install build-essential git
Using the install script from michbeck100
https://forum.pimatic.org/topic/4462/trouble-with-fresh-installation/49
pi@raspberrypi:~/pimatic-test $ sudo node_modules/pimatic/pimatic.js
Everything works as usually
Copy my config.json to the pimatic dir
Started manual installation of some plugin first.
npm install pimatic-ping@0.9.5
npm install pimatic/pimatic-homeduino --unsafe-perm
npm install pimatic-amazing-dash-button@0.9.14 --unsafe-perm
sudo node_modules/pimatic/pimatic.js
— ---- and running
************ Thanks to all************
How can I set this to solved??