我決定要開始使用開源代碼,幾乎是個初學者。向我建議的專案之一是 vscode。因此,我按照以下鏈接中的說明進行操作:
https://github.com/microsoft/vscode/wiki/How-to-Contribute
我在 Fedora 作為平臺,所以我為基于 Red hat 的 linux 運行命令。它成功了。然后,我在我的 github 上分叉,我在本地克隆了我的分叉,正如指南的其余部分所建議的那樣。所以,我進入了這個 vscode 目錄,然后運行 ??yarn。這里開始出現問題,出現以下錯誤:
1/13] ? @parcel/watcher
[2/13] ? @vscode/ripgrep
[3/13] ? @vscode/sqlite3
[4/13] ? keytar
error /home/matteopossamai/open_source/vscode/node_modules/native-is-elevated: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /home/matteopossamai/open_source/vscode/node_modules/native-is-elevated
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@9.0.0
gyp info using node@16.15.0 | linux | x64
gyp info find Python using Python version 3.9.7 found at "/usr/bin/python3"
gyp http GET https://electronjs.org/headers/v17.4.3/node-v17.4.3-headers.tar.gz
gyp http 200 https://artifacts.electronjs.org/headers/dist/v17.4.3/node-v17.4.3-headers.tar.gz
gyp http GET https://electronjs.org/headers/v17.4.3/SHASUMS256.txt
gyp http 200 https://artifacts.electronjs.org/headers/dist/v17.4.3/SHASUMS256.txt
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/usr/lib/node_modules/npm/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 '/home/matteopossamai/open_source/vscode/node_modules/native-is-elevated/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/matteopossamai/.cache/node-gyp/17.4.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=/home/matteopossamai/.cache/node-gyp/17.4.3',
gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/matteopossamai/.cache/node-gyp/17.4.3/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/matteopossamai/open_source/vscode/node_modules/native-is-elevated',
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 ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: ingresso nella directory ?/home/matteopossamai/open_source/vscode/node_modules/native-is-elevated/build?
CXX(target) Release/obj.target/iselevated/src/iselevated.o
make: g : File o directory non esistente
make: *** [iselevated.target.mk:121: Release/obj.target/iselevated/src/iselevated.o] Errore 127
make: uscita dalla directory ?/home/matteopossamai/open_source/vscode/node_modules/native-is-elevated/build?
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:527:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 5.13.16-200.fc34.x86_64
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/matteopossamai/open_source/vscode/node_modules/native-is-elevated
gyp ERR! node -v v16.15.0
我不確定問題是什么以及如何解決它。我真的很想開始貢獻并了解正在發生的一切,但我才剛剛開始,所以我缺乏一些知識。
下一步應該是使用yarn watch,但是有一個錯誤,我認為取決于前面的錯誤。
如果可以,請幫助我,我真的需要它
uj5u.com熱心網友回復:
我不明白為什么有些人在堆疊溢位時會無緣無故地不喜歡。據我所知,本地存盤庫存在問題。終端指南中的錯誤,請閱讀!
make: ingresso nella directory ?/home/matteopossamai/open_source/vscode/node_modules/native-is-elevated/build?
CXX(target) Release/obj.target/iselevated/src/iselevated.o
make: g : File o directory non esistente
我的建議是創建一個新檔案夾,從 GitHub 本地 fork 專案,然后重試。PS: hai controllat??o di aver installato tutte le dipendenze correttamente?Tuttalpiù da terminale fai un bel update/upgrade e controlla dalla pagina del progetto di cos'hai bisogno per sviluppare in locale。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/479000.html
標籤:Python 节点.js linux 视觉工作室代码 npm
