Ich schließe einmal hier an, weil dieser Thread die einzige Quelle zum Thema ist (abgesehen von der aus ihm erwachsenen Dokumentationsseite). Ich meinerseits scheitere leider an der Ausführung von `npm rebuild argon2 --build-from-source` . Wenn ich den Befehl so laufen lasse, beschwert sich C++ :
Code
../src/argon2_node.cpp:52:25: error: invalid conversion from 'const unsigned char*' to 'uint8_t* {aka unsigned char*}' [-fpermissive]
ctx.pwd = plain.data();
~~~~~~~~~~^~
../src/argon2_node.cpp:54:25: error: invalid conversion from 'const unsigned char*' to 'uint8_t* {aka unsigned char*}' [-fpermissive]
ctx.salt = salt.data();
~~~~~~~~~^~
../src/argon2_node.cpp:56:38: error: invalid conversion from 'const unsigned char*' to 'uint8_t* {aka unsigned char*}' [-fpermissive]
ctx.secret = opts.secret.empty() ? nullptr : opts.secret.data();
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/argon2_node.cpp:58:30: error: invalid conversion from 'const unsigned char*' to 'uint8_t* {aka unsigned char*}' [-fpermissive]
ctx.ad = opts.ad.empty() ? nullptr : opts.ad.data();
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Release/obj.target/argon2/src/argon2_node.o] Error 1
Alles anzeigen
Interessanter wird es, wenn ich die node binary direkt angebe: `/opt/plesk/node/17/bin/npm rebuild argon2 --build-from-source`. Dann beschwert sich gyp über eine zu niedrige Python-Version:
Code
npm ERR! gyp ERR! find Python checking if "python3" can be used
npm ERR! gyp ERR! find Python - executable path is "/usr/bin/python3"
npm ERR! gyp ERR! find Python - version is "3.5.3"
npm ERR! gyp ERR! find Python - version is 3.5.3 - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python checking if "python" can be used
npm ERR! gyp ERR! find Python - executable path is "/usr/bin/python"
npm ERR! gyp ERR! find Python - version is "2.7.13"
npm ERR! gyp ERR! find Python - version is 2.7.13 - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
Kann man da irgend etwas machen oder muss ich davon ausgehen, dass ich Directus auf meinem Shared Hosting (ebenfalls 4000SE) nicht werde einsetzen können?