Need Testing new dependencies auto installer
-
You have some difficulty for installing MMM-Detector or MMM-GoogleAssistant
and you have some error ?This testing script is yours !
I’m just writing an new auto installer for auto-installing all new dependencies
If you want to try it, this is some needed commands:
cd ~ git clone https://github.com/bugsounet/require cd require ./require.sh
just tell me if helping and what do you think about this
-
Tested.
you used a “;” instead a “:” after https
but it’s not working. I updated to npm 7.18.1, i like to be updated xD.
And this script is not changing the version:
pi@MagicMirror:~ $ git clone https://github.com/bugsounet/require Clonando en 'require'... remote: Enumerating objects: 11, done. remote: Counting objects: 100% (11/11), done. remote: Compressing objects: 100% (8/8), done. remote: Total 11 (delta 1), reused 3 (delta 1), pack-reused 0 Desempaquetando objetos: 100% (11/11), listo. pi@MagicMirror:~ $ cd require pi@MagicMirror:~/require $ ./require.sh Welcome to @bugsounet module Pre-Require installer! (Beta) Checking OS... OS Detected: linux-gnueabihf (raspbian 10 armv7l) Checking all dependencies... All Dependencies needed are installed ! NODE Version testing: Require: >= v12.0.0 Current: v16.4.1 ✓ NPM Version testing: Require: >= 6.14.15 < 7.0.0 Current: 7.18.1 𐄂 Failed: incorrect version! - Updating to npm v6... removed 70 packages, changed 98 packages, and audited 438 packages in 18s 3 packages are looking for funding run `npm fund` for details found 0 vulnerabilities npm installation Done! version=V7.18.1 Passed: perfect! Notes: If any version change maybe you have to reinstall any modules ! For @bugsounet modules: MMM-Detector: npm run rebuild MMM-GoogleAssistant: npm run rebuild for Others modules npm install should works pi@MagicMirror:~/require $ npm -v 7.18.1 pi@MagicMirror:~/require $
-
Maybe you tried to install npm with sudo, and (in my case) it’s without sudo
-
Fix with “:” and works for me
cd ~ git clone https://github.com/bugsounet/require cd require ./require.sh
-
@calcu :
nop it’s not that: script source
just because you don’t use official package for node.
if you prefer to usen
package it’s not a solutionIf you use
n
pacakge. All is install in another directory.so:
- you can’t use
apt-get update nodejs
for updating node - and you can’t use
sudo npm install -g npm@6
because it’s managed byn
too
that why it’s not works
- you can’t use
-
@bugsounet my knowledge is limited but i think it’s:
in line 375 you use “sudo npm install -g npm@6.14.15”
I checked 2 times in my system:
Actual version:
pi@MagicMirror:~ $ npm -v 6.14.15 pi@MagicMirror:~ $ sudo npm -v 7.24.2
and Magicmirror was installed without sudo, that means it uses the first version.
-
i can install with: ‘sudo npm install -g npm@6.14.15’ and with ‘npm install -g npm@6.14.15’. and i have actually both installed
-
it’s just mean that you have 2 version of npm installed (v7 for all user) and you override this rule but install v6.14.15 by installing npm in MagicMirror dependency [BUT worls only for MM not for Modules] or/and overrided by
n
package [this play with $PATH environment]this methode for installing
n
package is funny…- you have to install nodejs (by node installer from website)
- you have to install npm (installed by default with nodejs)
- and now you can install
n
… (not really logic !)
really not a proper method sorry