Closed JohnDoesCodes closed 7 years ago
Looks like your Python installation is broken, try to reinstall Python completely.
Alternatively, you could do a quick check to make sure Python is added to your PATH by running this in command line (Windows Key + R
-> type in cmd
-> Enter
):
python -V
Assuming this was resolved, closing the issue.
Yes I did install everything in that requires.
λ npm install discord-spoiler-bot --save
C:\Users\hp\Desktop\Bots\test\node_modules\canvas>if not defined npm_config_node_gyp (node "C:\Users\hp\AppData\Roami e_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild ) (C:\Users\hp\AppData\Roaming\npm\node_modules\npm\node_modules\node-gy
gyp ERR! stack at C:\Users\hp\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "C:\Users\hp\AppData\Local\Programs\Python\Python35-32\python.EXE" gyp ERR! stack at PythonFinder.failNoPython (C:\Users\hp\AppData\Roaming\npm\node_modules\npm\node_modules\node-g gyp ERR! stack at PythonFinder.
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\hp\AppData\Roaming\npm\node_modules\npm\node gyp ERR! cwd C:\Users\hp\Desktop\Bots\test\node_modules\canvas
gyp ERR! node -v v8.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN discord.js@11.1.0 requires a peer of bufferutil@^3.0.0 but none was installed.
npm WARN discord.js@11.1.0 requires a peer of erlpack@hammerandchisel/erlpack but none was installed.
npm WARN discord.js@11.1.0 requires a peer of node-opus@^0.2.5 but none was installed.
npm WARN discord.js@11.1.0 requires a peer of opusscript@^0.0.3 but none was installed.
npm WARN discord.js@11.1.0 requires a peer of sodium@^2.0.1 but none was installed.
npm WARN discord.js@11.1.0 requires a peer of libsodium-wrappers@^0.5.1 but none was installed.
npm WARN discord.js@11.1.0 requires a peer of uws@^0.14.1 but none was installed.
npm WARN test@1.0.0 No description
npm WARN test@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! canvas@1.6.6 install:
node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the canvas@1.6.6 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\hp\AppData\Roaming\npm-cache_logs\2017-09-02T08_37_52_575Z-debug.log