We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cd Agora-Electron-API-Example yarn install
node version: v14.21.3 yarn version: 1.22.15 os: Apple M1 Ventura 13.0 error:
warning " > [email protected]" has incorrect peer dependency "react@^16.13.1". [4/4] 🔨 Building fresh packages... [-/7] ⠄ waiting... [7/7] ⠄ node-sass [-/7] ⠄ waiting... [4/7] ⠄ electron error /Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-sass: Command failed. Exit code: 1 Command: node scripts/build.js Arguments: Directory: /Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-sass Output: Building: /Users/houchaowei/.nvm/versions/node/v14.21.3/bin/node /Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= gyp info it worked if it ends with ok gyp verb cli [ gyp verb cli '/Users/houchaowei/.nvm/versions/node/v14.21.3/bin/node', gyp verb cli '/Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-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 verb cli ] gyp info using [email protected] gyp info using [email protected] | darwin | arm64 gyp verb command rebuild [] gyp verb command clean [] gyp verb clean removing "build" directory gyp verb command configure [] gyp verb download using dist-url https://npm.taobao.org/dist gyp verb find Python Python is not set from command line or npm configuration gyp verb find Python Python is not set from environment variable PYTHON gyp verb find Python checking if "python3" can be used gyp verb find Python - executing "python3" to get executable path gyp verb find Python - executable path is "/opt/homebrew/opt/[email protected]/bin/python3.11" gyp verb find Python - executing "/opt/homebrew/opt/[email protected]/bin/python3.11" to get version gyp verb find Python - version is "3.11.4" gyp info find Python using Python version 3.11.4 found at "/opt/homebrew/opt/[email protected]/bin/python3.11" gyp verb get node dir no --target version specified, falling back to host node version: 14.21.3 gyp verb command install [ '14.21.3' ] gyp verb download using dist-url https://npm.taobao.org/dist gyp verb install input version string "14.21.3" gyp verb install installing version: 14.21.3 gyp verb install --ensure was passed, so won't reinstall if already installed gyp verb install version is already installed, need to check "installVersion" gyp verb got "installVersion" 9 gyp verb needs "installVersion" 9 gyp verb install version is good gyp verb get node dir target node version installed: 14.21.3 gyp verb build dir attempting to create "build" dir: /Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-sass/build gyp verb build dir "build" dir needed to be created? /Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-sass/build gyp verb build/config.gypi creating config file gyp verb build/config.gypi writing out config file: /Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-sass/build/config.gypi gyp verb config.gypi checking for gypi file: /Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-sass/config.gypi gyp verb common.gypi checking for gypi file: /Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-sass/common.gypi gyp verb gyp gyp format was not specified; forcing "make" gyp info spawn /opt/homebrew/opt/[email protected]/bin/python3.11 gyp info spawn args [ gyp info spawn args '/Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-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/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-sass/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/Users/houchaowei/Library/Caches/node-gyp/14.21.3/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/houchaowei/Library/Caches/node-gyp/14.21.3', gyp info spawn args '-Dnode_gyp_dir=/Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/Users/houchaowei/Library/Caches/node-gyp/14.21.3/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-sass', gyp info spawn args '-Dnode_engine=v8', 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=.' gyp info spawn args ] Traceback (most recent call last): File "/Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-gyp/gyp/gyp_main.py", line 51, in <module> sys.exit(gyp.script_main()) ^^^^^^^^^^^^^^^^^ File "/Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 670, in script_main return main(sys.argv[1:]) ^^^^^^^^^^^^^^^^^^ File "/Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 662, in main return gyp_main(args) ^^^^^^^^^^^^^^ File "/Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 629, in gyp_main [generator, flat_list, targets, data] = Load( ^^^^^ File "/Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 150, in Load result = gyp.input.Load( ^^^^^^^^^^^^^^^ File "/Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 3021, in Load LoadTargetBuildFile( File "/Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 411, in LoadTargetBuildFile build_file_data = LoadOneBuildFile( ^^^^^^^^^^^^^^^^^ File "/Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 239, in LoadOneBuildFile build_file_contents = open(build_file_path, "rU").read() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid mode: 'rU' while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-gyp/lib/configure.js:351:16) gyp ERR! stack at ChildProcess.emit (events.js:400:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:285:12) gyp ERR! System Darwin 22.1.0 gyp ERR! command "/Users/houchaowei/.nvm/versions/node/v14.21.3/bin/node" "/Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /Users/houchaowei/Documents/github/Agora-Electron-Quickstart/Agora-Electron-API-Example/node_modules/node-sass gyp ERR! node -v v14.21.3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
node version: v14.21.3
yarn version: 1.22.15
os: Apple M1 Ventura 13.0
error:
The text was updated successfully, but these errors were encountered: