Closed chanteclair12 closed 4 years ago
Oui c'est très certainement la version de NodeJS. Il faut une version bien antérieure. C'est la version 6 qui est indiquée, mais de mémoire ça fonctionne aussi en version 8.
Nous avons l'habitude d'utiliser https://github.com/nvm-sh/nvm pour installer la version recommandée dans le fichier .nvmrc
Avant de refaire le npm install
après avoir changé de version de npm il faut supprimer le répertoire node_modules/
Merci pour ces retours rapides ! Faut-il désinstaller également ce qui a pu être installé de Geotrek-rando ou, désintaller la version node.js en question, supprimer le répertoire spécifié par @gutard est-il suffisant ? Merci.
Il n'est pas nécessaire de désinstaller Geotrek-rando. Il n'est pas nécessaire non plus de désinstaller le node.js qui vient avec la distribution. Par contre il faut bien lancer nvm use
à chaque fois qu'on ouvre un nouveau shell de commande avant de lancer npm afin qu'il pointe vers la bonne version.
L'installation de Node.js en version 6 retourne : `
DEPRECATION WARNING
Node.js 6.x LTS Boron is no longer actively supported!
You will not receive security or critical stability updates for this version.
You should migrate to a supported version of Node.js as soon as possible. Use the installation script that corresponds to the version of Node.js you wish to install. e.g.
https://deb.nodesource.com/setup_14.x — Node.js 14 LTS "Fermium"
Please see https://github.com/nodejs/Release for details about which version may be appropriate for you.
The NodeSource Node.js distributions repository contains information both about supported versions of Node.js and supported Linux distributions. To learn more about usage, see the repository: https://github.com/nodesource/distributions`
Faut-il continuer, passer sur la version 8 qui ne semble pas plus maintenue ?
Bonjour, Nous sommes parvenus à faire l'installation de Geotrek-rando. Subsiste un problème de paramétrage, sans doute bénin, qui fait qu'en saisissant l'Url du geotrek-rando, on ne tombe pas directement sur l'interface, mais sur une page intermédiaire avec 2 liens hypertexte ( Enter website Don't display this page anymore), le 1er permettant d'accéder au site. Nous avons vérifié la doc mais nous ne trouvons pas quel point nous fait défaut. Auriez-vous une idée svp ? Merci par avance. Cordialement
Il faut ajouter "SHOW_HOME": false
dans custom/settings.custom.json
Avez-vous refait un build après la modification ?
To apply changes after editing settings, launch bundling task again with running
npm run dist
Bonjour, Nous tentons (un collègue et moi-même) d'installer Geotrek-rando sur une VM Ubuntu 18.04.4 LTS. Nous avons donc téléchargé le zip de la version 2.24.1. Nous avons installé node.js, version v14 puis avons lancé la commande npm install. Cela a produit un certain nombre d'erreurs (ci-dessous) :
` administrateur@VM-GEOTREK:/etc/geotrek/Geotrek-rando-2.24.1$ npm install npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVersion@0. I'll try to do my best with it! npm WARN deprecated phantomjs-prebuilt@2.1.16: this package is now deprecated npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. npm WARN checkPermissions Missing write access to /etc/geotrek/Geotrek-rando-2.24.1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code EACCES npm ERR! syscall access npm ERR! path /etc/geotrek/Geotrek-rando-2.24.1 npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/etc/geotrek/Geotrek-rando-2.24.1' npm ERR! [Error: EACCES: permission denied, access '/etc/geotrek/Geotrek-rando-2.24.1'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/etc/geotrek/Geotrek-rando-2.24.1' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in: npm ERR! /home/adm070720/.npm/_logs/2020-07-07T09_42_41_636Z-debug.log `
La commande npm run dist a renvoyé : ` administrateur@VM-GEOTREK:/etc/geotrek/Geotrek-rando-2.24.1$ npm run dist
A tout hasard, nous avons relancé les mêmes commandes en sudo avec les résultats suivants :
` administrateur@VM-GEOTREK:/etc/geotrek/Geotrek-rando-2.24.1$ sudo npm install npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVersion@0. I'll try to do my best with it! npm WARN deprecated phantomjs-prebuilt@2.1.16: this package is now deprecated npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
` administrateur@VM-GEOTREK:/etc/geotrek/Geotrek-rando-2.24.1$ sudo npm run dist
Quelqu'un peut-il nous dire ce que nous avons manqué ou mal fait et la procédure à suivre svp ? En vous remerciant par avance pour l'aide que vous pourrez nous apporter. Cordialement,