J'installe Node.js sur l'hébergement de Linux partagé de Godaddy en vous connectant à SSH via Putty. Obtenir des erreurs.
L'Iran
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
commande d'installer NVM. NVM est installé avec succès car je reçois la réponse '0.34.0' sur la course nvm --version
.
Je cours nvm install node
Pour installer Node.js.
Après avoir exécuté cette commande, je reçois des erreurs suivantes:
node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by node)
node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by node)
node: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by node)
node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.16' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by node)
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v12.9.0` to unset it.
Je m'attends à nvm install node
Pour installer avec succès Node.js et toutes ses dépendances. Résultats réels (de Putsty):
nvm install node
Downloading and installing node v12.9.0...
Downloading https://nodejs.org/dist/v12.9.0/node-v12.9.0-linux-x64.tar.gz...
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by node)
node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by node)
node: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by node)
node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.16' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by node)
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v12.9.0` to unset it.
Référencer ce blog - https://ferugi.com/blog/nodejs-on-godaddy-shared-cpanel/
Aide gentillement.
Il suffit d'installer la version la plus basse du nœud ..
Exécutez la commande suivante:
nvm install v6.8.0
.... et acclamations!