I'm trying to install johnny-five on windows7 64 bit. I have an earlier version of Node (v.13.14.0-64) installed and I use Visual Studio Code as my code editor.
Regarding the first part of the error, prebuild-install WARN install No prebuilt binaries found (target=13.14.0 runtime=node arch=x64 libc= platform=win32). I simply don't know what this means even after reading forums about this error.
I have Python installed and the error says it can't find it. I went to this website trying to fix the error but still wasn't able to find a solution.
> #serialport/bindings#8.0.8 install C:\Users\HP\Documents\GitHub\NODE\node_modules\#serialport\bindings
> prebuild-install --tag-prefix #serialport/bindings# || node-gyp rebuild
prebuild-install WARN install No prebuilt binaries found (target=13.14.0 runtime=node arch=x64 libc= platform=win32)
C:\Users\HP\Documents\GitHub\NODE\node_modules\#serialport\bindings>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 )
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if the py launcher can be used to find Python 2
gyp ERR! find Python - "py.exe" is not in PATH or produced an error
gyp ERR! find Python checking if Python is C:\Python27\python.exe
gyp ERR! find Python - "C:\Python27\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Python37\python.exe
gyp ERR! find Python - "C:\Python37\python.exe" could not be run
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
gyp ERR! find Python (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python npm config set python "C:\Path\To\python.exe"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47)
gyp ERR! stack at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21)
gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16)
gyp ERR! stack at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16)
gyp ERR! stack at exithandler (child_process.js:310:5)
gyp ERR! stack at ChildProcess.errorhandler (child_process.js:322:5)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)
gyp ERR! stack at onErrorNT (internal/child_process.js:467:16)
gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:84:21)
gyp ERR! System Windows_NT 6.1.7601
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\HP\Documents\GitHub\NODE\node_modules\#serialport\bindings
gyp ERR! node -v v13.14.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\HP\Documents\GitHub\NODE\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\HP\Documents\GitHub\NODE\package.json'
npm WARN NODE No description
npm WARN NODE No repository field.
npm WARN NODE No README data
npm WARN NODE No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: #serialport/bindings#8.0.8 (node_modules\#serialport\bindings):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: #serialport/bindings#8.0.8 install: `prebuild-install --tag-prefix #serialport/bindings# || node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ johnny-five#2.1.0
updated 1 package and audited 101 packages in 8.473s
5 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
Any help is appreciated.
I'm trying to get into full stack web dev, so I'm fairly new. Just recently I was installing node.js onto my laptop, I'm following this course and I had to clone a github repo onto my bash terminal and run the npm install but it came up with a whole list of errors.
I tried running things on a Virtual Environment, reinstalling node.js among some possible solutions online but with no luck. I'm hoping someone would help me out here, I'd appreciate that. Below is the log for my errors:
Thanks a lot
npm ERR! path C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js
npm ERR! Building: C:\Program Files\nodejs\node.exe C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
npm ERR! gyp verb cli 'C:\\Users\\Kevin\\OneDrive\\Desktop\\code\\javascript\\node_modules\\node-gyp\\bin\\node-gyp.js',
npm ERR! gyp verb cli 'rebuild',
npm ERR! gyp verb cli '--verbose',
npm ERR! gyp verb cli '--libsass_ext=',
npm ERR! gyp verb cli '--libsass_cflags=',
npm ERR! gyp verb cli '--libsass_ldflags=',
npm ERR! gyp verb cli '--libsass_library='
npm ERR! gyp verb cli ]
npm ERR! gyp info using node-gyp#3.8.0
npm ERR! gyp info using node#16.5.0 | win32 | x64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! gyp verb `which` failed Error: not found: python2
npm ERR! gyp verb `which` failed at getNotFoundError (C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:195:21)
npm ERR! gyp verb `which` failed python2 Error: not found: python2
npm ERR! gyp verb `which` failed at getNotFoundError (C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:195:21) {
npm ERR! gyp verb `which` failed code: 'ENOENT'
npm ERR! gyp verb `which` failed }
npm ERR! gyp verb check python checking for Python executable "python" in the PATH
npm ERR! gyp verb `which` succeeded python C:\Python39\python.EXE
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: C:\Python39\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack File "<string>", line 1
npm ERR! gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack ^
npm ERR! gyp ERR! stack SyntaxError: invalid syntax
npm ERR! gyp ERR! stack
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:397:12)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:394:28)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1067:16)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
npm ERR! gyp ERR! System Windows_NT 10.0.19042
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Kevin\\OneDrive\\Desktop\\code\\javascript\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd C:\Users\Kevin\OneDrive\Desktop\code\javascript\node_modules\node-sass
npm ERR! gyp ERR! node -v v16.5.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1```
It seems like this Node version requires Python 2x and you have Python 3x added to the path. Try downloading Python 2x and adding it to the path.
Everytime i run my discord speech recognition code it goes online but as soon as it join the channel my code shows Error: Cannot find module '#discordjs/opus'
Require stack:
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\util\loader.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\opus\Opus.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\opus\index.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\index.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\player\BasePlayer.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\player\BroadcastAudioPlayer.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\VoiceBroadcast.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\ClientVoiceManager.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\Client.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\index.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\index.js
Error: Cannot find module 'node-opus'
Require stack:
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\util\loader.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\opus\Opus.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\opus\index.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\index.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\player\BasePlayer.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\player\BroadcastAudioPlayer.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\VoiceBroadcast.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\ClientVoiceManager.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\Client.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\index.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\index.js
Error: Cannot find module 'opusscript'
Require stack:
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\util\loader.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\opus\Opus.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\opus\index.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\index.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\player\BasePlayer.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\player\BroadcastAudioPlayer.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\VoiceBroadcast.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\ClientVoiceManager.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\Client.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\index.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\index.js
2021-01-26T04:50:28.411Z :: discordClient message: Error: Error: Cannot find module '#discordjs/opus'
Require stack:
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\util\loader.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\opus\Opus.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\opus\index.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\index.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\player\BasePlayer.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\player\BroadcastAudioPlayer.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\VoiceBroadcast.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\ClientVoiceManager.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\Client.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\index.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\index.js
Error: Cannot find module 'node-opus'
Require stack:
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\util\loader.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\opus\Opus.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\opus\index.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\index.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\player\BasePlayer.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\player\BroadcastAudioPlayer.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\VoiceBroadcast.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\ClientVoiceManager.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\Client.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\index.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\index.js
Error: Cannot find module 'opusscript'
Require stack:
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\util\loader.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\opus\Opus.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\opus\index.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\prism-media\src\index.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\player\BasePlayer.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\player\BroadcastAudioPlayer.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\VoiceBroadcast.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\voice\ClientVoiceManager.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\client\Client.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\discord.js\src\index.js
- C:\Users\SURYASH\Desktop\DiscordSpeechBot\index.js
Also while installing required modules/libraries it shows that somehow it can't install discord/opus
> #discordjs/opus#0.1.0 install C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\#discordjs\opus
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://github.com/discordjs/opus/releases/download/v0.1.0/opus-v0.1.0-node-v83-win32-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for #discordjs/opus#0.1.0 and node#14.15.4 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if the py launcher can be used to find Python 2
gyp ERR! find Python - "py.exe" is not in PATH or produced an error
gyp ERR! find Python checking if Python is C:\Python27\python.exe
gyp ERR! find Python - "C:\Python27\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Python37\python.exe
gyp ERR! find Python - "C:\Python37\python.exe" could not be run
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
gyp ERR! find Python (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python npm config set python "C:\Path\To\python.exe"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47)
gyp ERR! stack at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21)
gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16)
gyp ERR! stack at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16)
gyp ERR! stack at exithandler (child_process.js:315:5)
gyp ERR! stack at ChildProcess.errorhandler (child_process.js:327:5)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! stack at onErrorNT (internal/child_process.js:465:16)
gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:80:21)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\SURYASH\\Desktop\\DiscordSpeechBot\\node_modules\\#discordjs\\opus\\prebuild\\node-v83-win32-x64\\opus.node" "--module_name=opus" "--module_path=C:\\Users\\SURYASH\\Desktop\\DiscordSpeechBot\\node_modules\\#discordjs\\opus\\prebuild\\node-v83-win32-x64" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83"
gyp ERR! cwd C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\#discordjs\opus
gyp ERR! node -v v14.15.4
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program
Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\#discordjs\opus\prebuild\node-v83-win32-x64\opus.node --module_name=opus --module_path=C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\#discordjs\opus\prebuild\node-v83-win32-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
node-pre-gyp ERR! System Windows_NT 10.0.18363
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\SURYASH\\Desktop\\DiscordSpeechBot\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\#discordjs\opus
node-pre-gyp ERR! node -v v14.15.4
node-pre-gyp ERR! node-pre-gyp -v v0.14.0
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\#discordjs\opus\prebuild\node-v83-win32-x64\opus.node --module_name=opus --module_path=C:\Users\SURYASH\Desktop\DiscordSpeechBot\node_modules\#discordjs\opus\prebuild\node-v83-win32-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! #discordjs/opus#0.1.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the #discordjs/opus#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\SURYASH\AppData\Roaming\npm-cache\_logs\2021-01-26T04_57_11_574Z-debug.log
So eventually my bot code require opus module and somehow it cant install it.
Try this:
npm install discordjs/opus
I had the same issue "Error: Cannot find module '#discordjs/opus'" when trying to get my discord js bot to play an .mp3 file when a certain user was speaker
Figured this solution out by watching this video.
youtube.com/watch?v=WXohhIJ1-f4
If you don't want to click on the link, just search "How to play audio in voice channel discord js" on youtube!
first you need to install python,after that run this(admin powershell):
npm install -g windows-build-tools
if this command doesnt fix your issue (node-gyp issue)than
# before installing node-gyp on windows
npm install --global --production windows-build-tools
# install node-gyp globally
npm install -g node-gyp
Try installing this: npm install --global windows-build-tools with an admin powershell. windows-build-tools installs python with it.
open powershell(admin)
and type:
npm install -g windows-build-tools
before installing node-gyp on windows
npm install --global --production windows-build-tools
install node-gyp globally
npm install -g node-gyp
First install python from https://www.python.org/downloads/. That seems to be the main problem
When installing make sure to select Add python to path
how to add python to path
Close the terminal reopen it, then try again.
If it still doesn't work, open windows power-shell as admin, and type npm i -g windows-build-tools
Close the terminal reopen and try downloading the packages again
I am stuck now for weeks with the following compiling issue. Once I start to run it on local the following error occurs.
The package cannot be downloaded since dependencies on github are down.
"https://github.com/sass/node-sass/releases/download/v3.8.0/darwin-x64-57_binding.node"
But it is not really needed and I am not sure how to skip it. The script stops here.
Please someone help. I am a junior developer.
Adams-MacBook-Pro:xxx adam$ npm run start
> xxx-1.7# start /Users/adam/Desktop/xxx
> meteor run --settings settings.json
[[[[[ ~/Desktop/xxx ]]]]]
=> Started proxy.
=> Errors prevented startup:
While loading package lookback:emails#0.7.7:
error: Command failed:
/Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm
rebuild --update-binary
Cannot download
"https://github.com/sass/node-sass/releases/download/v3.8.0/darwin-x64-57_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
gyp info it worked if it ends with ok
gyp verb cli [
'/Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node',
gyp verb cli
'/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using node-gyp#3.4.0
gyp info using node#8.11.4 | darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError
(/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:14:12)
gyp verb `which` failed at F
(/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:69:19)
gyp verb `which` failed at E
(/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:81:29)
gyp verb `which` failed at
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:90:16
gyp verb `which` failed at
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/isexe/index.js:44:5
gyp verb `which` failed at
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/isexe/access.js:8:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:135:15)
gyp verb `which` failed python2 { Error: not found: python2
gyp verb `which` failed at getNotFoundError
(/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:14:12)
gyp verb `which` failed at F
(/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:69:19)
gyp verb `which` failed at E
(/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:81:29)
gyp verb `which` failed at
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:90:16
gyp verb `which` failed at
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/isexe/index.js:44:5
gyp verb `which` failed at
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/isexe/access.js:8:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:135:15) code:
'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python /usr/bin/python
gyp verb check python version `/usr/bin/python -c "import platform;
print(platform.python_version());"` returned: "2.7.10\n"
gyp verb get node dir compiling against specified --nodedir dev files:
/Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle
gyp verb build dir attempting to create "build" dir:
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created?
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file:
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file:
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file:
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /usr/bin/python
gyp info spawn args [
'/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args
'/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args
'/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args
'/Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args
'-Dnode_root_dir=/Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle',
gyp info spawn args
'-Dnode_gyp_dir=/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args
'-Dmodule_root_dir=/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer
directory '/Library/Developer/CommandLineTools' is a command line tools
instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer
directory '/Library/Developer/CommandLineTools' is a command line tools
instance
Traceback (most recent call last):
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/gyp_main.py",
line 16, in <module>
sys.exit(gyp.script_main())
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
line 545, in script_main
return main(sys.argv[1:])
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
line 538, in main
return gyp_main(args)
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
line 523, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py",
line 2170, in GenerateOutput
part_of_all=qualified_target in needed_targets)
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py",
line 795, in Write
self.Pchify))
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py",
line 1190, in WriteSources
cflags = self.xcode_settings.GetCflags(configname)
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
line 551, in GetCflags
archs = self.GetActiveArchs(self.configname)
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
line 420, in GetActiveArchs
xcode_archs_default = GetXcodeArchsDefault()
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
line 118, in GetXcodeArchsDefault
xcode_version, _ = XcodeVersion()
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
line 1265, in XcodeVersion
version = re.match(r'(\d\.\d\.?\d*)', version).groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups'
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit
(/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/lib/configure.js:305:16)
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 Darwin 18.0.0
gyp ERR! command
"/Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/bin/node-gyp.js"
"rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags="
"--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass
gyp ERR! node -v v8.11.4
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
Build failed
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#3.8.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#3.8.0 postinstall 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! /Users/adam/.npm/_logs/2018-10-19T19_12_17_338Z-debug.log
Cannot download
"https://github.com/sass/node-sass/releases/download/v3.8.0/darwin-x64-57_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
gyp info it worked if it ends with ok
gyp verb cli [
'/Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node',
gyp verb cli
'/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using node-gyp#3.4.0
gyp info using node#8.11.4 | darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError
(/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:14:12)
gyp verb `which` failed at F
(/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:69:19)
gyp verb `which` failed at E
(/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:81:29)
gyp verb `which` failed at
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:90:16
gyp verb `which` failed at
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/isexe/index.js:44:5
gyp verb `which` failed at
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/isexe/access.js:8:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:135:15)
gyp verb `which` failed python2 { Error: not found: python2
gyp verb `which` failed at getNotFoundError
(/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:14:12)
gyp verb `which` failed at F
(/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:69:19)
gyp verb `which` failed at E
(/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:81:29)
gyp verb `which` failed at
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:90:16
gyp verb `which` failed at
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/isexe/index.js:44:5
gyp verb `which` failed at
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/isexe/access.js:8:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:135:15) code:
'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python /usr/bin/python
gyp verb check python version `/usr/bin/python -c "import platform;
print(platform.python_version());"` returned: "2.7.10\n"
gyp verb get node dir compiling against specified --nodedir dev files:
/Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle
gyp verb build dir attempting to create "build" dir:
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created?
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file:
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file:
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file:
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /usr/bin/python
gyp info spawn args [
'/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args
'/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args
'/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args
'/Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args
'-Dnode_root_dir=/Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle',
gyp info spawn args
'-Dnode_gyp_dir=/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args
'-Dmodule_root_dir=/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer
directory '/Library/Developer/CommandLineTools' is a command line tools
instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer
directory '/Library/Developer/CommandLineTools' is a command line tools
instance
Traceback (most recent call last):
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/gyp_main.py",
line 16, in <module>
sys.exit(gyp.script_main())
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
line 545, in script_main
return main(sys.argv[1:])
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
line 538, in main
return gyp_main(args)
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
line 523, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py",
line 2170, in GenerateOutput
part_of_all=qualified_target in needed_targets)
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py",
line 795, in Write
self.Pchify))
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py",
line 1190, in WriteSources
cflags = self.xcode_settings.GetCflags(configname)
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
line 551, in GetCflags
archs = self.GetActiveArchs(self.configname)
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
line 420, in GetActiveArchs
xcode_archs_default = GetXcodeArchsDefault()
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
line 118, in GetXcodeArchsDefault
xcode_version, _ = XcodeVersion()
File
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
line 1265, in XcodeVersion
version = re.match(r'(\d\.\d\.?\d*)', version).groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups'
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit
(/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/lib/configure.js:305:16)
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 Darwin 18.0.0
gyp ERR! command
"/Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
"/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/bin/node-gyp.js"
"rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags="
"--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd
/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass
gyp ERR! node -v v8.11.4
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
Build failed
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#3.8.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#3.8.0 postinstall 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! /Users/adam/.npm/_logs/2018-10-19T19_12_17_338Z-debug.log
=> Your application has errors. Waiting for file change.
=> Started MongoDB.
From your error message:
npm ERR! node-sass#3.8.0
You are using version 3.8.0 of node-sass. This outdated version is incompatible with Node v8, the version of Node that you have installed.
You can either:
1. Upgrade node-sass
2. Downgrade node to v6
I do not recommend option 2.
So, to fix this error I would recommend upgrading node-sass to at least 4.5.3, the minimum version for Node v8. If you're using npm that would look something like npm install node-sass#latest.
At the time of writing, the #latest tag will bring you to 4.9.4 and would fix this problem for you.
This problem was caused by the node-sass release 3.8 being removed from github, and lookback:emails package had an example app within it, that depended on this version.
We solved the problem by changing the dependency to 4.11 and also hidden the example app under .example directory, so the package itself doesn't depend on any version of node-sass any more. (Only the example app, but that is not necessary for the package to work - that is just a demo)
We pushed the fixed version to atmosphere. So you will not get the error any more once you do a meteor update lookback:emails to update to the latest version of the package.
I'm using MacOS and is trying to install web3. I'm getting this error response message which I'm not sure how to resolve.
I have other code editors installed in my mac, and currently I'm learning how to do some blockchain development. Would be really helpful if someone could assist me in this. Thanks!
npm WARN deprecated fs-promise#2.0.3: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated tar.gz#1.0.7: ⚠️ WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
> scrypt#6.0.3 preinstall /Users/HTT/inbox/node_modules/scrypt
> node node-scrypt-preinstall.js
> scrypt#6.0.3 install /Users/HTT/inbox/node_modules/scrypt
> node-gyp rebuild
gyp ERR! configure error
gyp ERR! stack Error: Python executable "/anaconda3/bin/python" is v3.6.4, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at PythonFinder.failPythonVersion (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:492:19)
gyp ERR! stack at PythonFinder.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:474:14)
gyp ERR! stack at ChildProcess.exithandler (child_process.js:267:7)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at maybeClose (internal/child_process.js:925:16)
gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:346:11)
gyp ERR! stack at emitOne (events.js:116:13)
gyp ERR! stack at Socket.emit (events.js:211:7)
gyp ERR! stack at Pipe._handle.close [as _onclose] (net.js:567:12)
gyp ERR! System Darwin 17.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/HTT/inbox/node_modules/scrypt
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN inbox#1.0.0 No description
npm WARN inbox#1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt#6.0.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt#6.0.3 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! /Users/HTT/.npm/_logs/2018-04-26T14_03_17_140Z-debug.log
I fixed it by specifying the version. Not really a "fix", but working with stable releases is something I can get behind
npm install -g web3#0.20.6
I have also seen that this will do the trick
npm install ethereum/web3.js
You can use this command to check the python version :
python --version
Because you need to use node-gyp, it is recommended to install python2.7.