Bonjour,
Voila je rencontre un petit problème avec mon code.
Quand je veut installer les (package) manquant je fais la commande suivante:
npm i bufferutil discordapp/erlpack node-opus opusscript sodium libsodium-wrappers uws --save-optional
J'aimerais qu'il y est aucun problème pour pouvoir créer mon bot discord en conséquence ne plus avoir cette erreur
Voila la réponse que j'ai :
> sodium@2.0.3 preinstall C:\Users\mister1610\Desktop\Bot\info-lobby\node_modules\sodium
> node install.js --preinstall
MS Version: 2015
Preinstall Mode
Download libsodium.lib
MS Version: 2015
Platform Tool is v140
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/x64/Release/v140/dynamic/libsodium.dll
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/x64/Release/v140/dynamic/libsodium.exp
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/x64/Release/v140/dynamic/libsodium.lib
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/x64/Release/v140/dynamic/libsodium.pdb
Libs for version v140 downloaded.
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/core.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_aead_aes256gcm.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_aead_chacha20poly1305.h Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_auth.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_auth_hmacsha256.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_auth_hmacsha512.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_auth_hmacsha512256.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_box.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_box_curve25519xsalsa20poly1305.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_core_hchacha20.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_core_hsalsa20.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_core_salsa20.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_core_salsa2012.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_core_salsa208.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_generichash.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_generichash_blake2b.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_hash.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_hash_sha256.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_hash_sha512.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_int32.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_int64.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_onetimeauth.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_onetimeauth_poly1305.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_pwhash.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_pwhash_argon2i.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_pwhash_scryptsalsa208sha256.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_scalarmult.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_scalarmult_curve25519.h Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_secretbox.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_secretbox_xsalsa20poly1305.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_shorthash.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_shorthash_siphash24.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_sign.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_sign_ed25519.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_sign_edwards25519sha512batch.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_stream.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_stream_chacha20.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_stream_salsa20.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_stream_salsa2012.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_stream_salsa208.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_stream_xsalsa20.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_uint16.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_uint32.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_uint64.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_uint8.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_verify_16.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_verify_32.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/crypto_verify_64.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/export.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/randombytes.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/randombytes_salsa20_random.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/randombytes_sysrandom.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/runtime.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/utils.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium/version.h
Download: https://raw.githubusercontent.com/paixaop/libsodium-bin/master/1.0.11/include/sodium.h
Include files downloaded.
Prebuild steps completed. Binary libsodium distribution installed in ./deps/build
> ref@1.3.5 install C:\Users\mister1610\Desktop\Bot\info-lobby\node_modules\ref
> node-gyp rebuild
**aroundaround**C:\Users\mister1610\Desktop\Bot\info-lobby\node_modules\ref>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Génération des projets individuellement dans cette solution. Pour activer la génération en parallèle, ajoutez le commutateur "/m".
TRACKER : error TRK0005: échec de localisation de : "CL.exe". Le fichier spécifié est introuvable. [C:\Users\mister1610\Deskt op\Bot\info-lobby\node_modules\ref\build\binding.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\mister1610\Desktop\Bot\info-lobby\node_modules\ref
gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
> bufferutil@4.0.0 install C:\Users\mister1610\Desktop\Bot\info-lobby\node_modules\bufferutil
> node-gyp-build
> erlpack@0.1.0 install C:\Users\mister1610\Desktop\Bot\info-lobby\node_modules\erlpack
> node-gyp rebuild
C:\Users\mister1610\Desktop\Bot\info-lobby\node_modules\erlpack>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Génération des projets individuellement dans cette solution. Pour activer la génération en parallèle, ajoutez le commutateur "/m".
TRACKER : error TRK0005: échec de localisation de : "CL.exe". Le fichier spécifié est introuvable. [C:\Users\mister1610\Deskt op\Bot\info-lobby\node_modules\erlpack\build\vendor\zlib.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\mister1610\Desktop\Bot\info-lobby\node_modules\erlpack
gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN discord.js@11.3.2 requires a peer of bufferutil@^3.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.3.2 requires a peer of node-opus@^0.2.7 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.3.2 requires a peer of uws@^9.14.0 but none is installed. You must install peer dependencies yourself. npm WARN bot@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ref@1.3.5 (node_modules\ref):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ref@1.3.5 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! erlpack@0.1.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the erlpack@0.1.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\mister1610\AppData\Roaming\npm-cache\_logs\2018-07-04T13_36_39_092Z-debug.log
Salut,
Si tu utilises Windows je te conseil de d'installer ce package: https://github.com/felixrieseberg/windows-build-tools