Salutations,
je souhaite mettre en place une appli écrite en ruby
l'offre souscrite est Cloud Web 1,
git : 2.11.0
rbenv : 1.1.2-61-g585ed84
ruby : 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]
rails : 6.1.4
gem : 2.7.6.2
Bundler : 2.2.21
en créant la nouvelle (et première) application Rails avec $rails new ao
j'obtiens ce message :
sh: 1: node: not found
sh: 1: nodejs: not found
Node.js not installed. Please download and install Node.js https://nodejs.org/en/download/
Exiting!
alors que un ls -hla /usr/local/
liste bien nodejs10 11 12 et 14 (celle dont j'ai besoin)
j'ai essayé 2 méthodes :
la première
$ sed -i 's@\["nodejs", "node"\],@["/usr/local/nodejs14/bin/node"],@' ${GEM_HOME}/gems/execjs-2.7.0/lib/execjs/runtimes.rb
sed: can't read /home/alphaok/.gem/ruby/2.5.0/gems/execjs-2.7.0/lib/execjs/runtimes.rb: No such file or directory
il n'y a effectivement aucun execjs
et la seconde n'est pas autorisée :
$ curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
## Installing the NodeSource Node.js 14.x repo...
## Populating apt-get cache...
+ apt-get update
Reading package lists... Done
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)
Error executing command, exiting
Avez vous déjà rencontré ce souci et comment y remédier ?
dans l'attente,
cordialement
Hébergement Cloud Web - Install nodejs avec Moteur d'exécution Ruby 2.5
Related questions
- Modification des variables php.ini
51609
23.01.2019 16:32
- FTP and SFTP time out
41198
14.01.2018 08:55
- Lancement App front React
41139
26.04.2019 12:54
- Accès à la configuration du serveur apache ?
37199
23.10.2017 12:25
- Connexion SSH ?
33954
14.10.2017 09:53
- Retours sur Cloud Web
32697
10.10.2017 15:02
- Transferts FTP/SFTP
31190
21.10.2017 13:00
- Activer Memcached PECL
30549
17.12.2018 13:07
- 504 Gateway Timeout depuis bientôt 24h
28030
24.04.2019 11:19
- Drupal 8 - Composer - lack of memory
25683
19.10.2017 19:33