DevEco tools工具鏈配置記錄:VScode本地配置+ubuntu遠程開發(fā)環(huán)境配置

折騰華為的開發(fā)環(huán)境好幾天了茬底。新手上路好多坑。获洲。阱表。。

1.ubuntu服務器贡珊。這個最好用本地虛擬機最爬。否則遠程共享samba端口屏蔽以及本地win10家庭版需要一堆配置和權限,不容易搞定门岔。samba搞不定的可以參考winfsp + sshfs-win解決方案 原文鏈接
2.其他一些常規(guī)報錯爱致,官方論壇有說。原文鏈接
3.u-boot找不到的問題寒随。這個找的感覺自己智商有問題糠悯。。最終是找到了妻往,不過最后發(fā)現(xiàn)有人總結了互艾。原文鏈接
4.npm install -g usb報錯。這個比較奇葩讯泣,我在下面貼全一些纫普,方便大家檢索。原文鏈接

..

C:\Users\think>npm install -g usb

> usb@1.6.3 install C:\Users\think\AppData\Roaming\npm\node_modules\usb
> prebuild-install --verbose || node-gyp rebuild

prebuild-install info begin Prebuild-install version 5.3.6
prebuild-install info looking for cached prebuild @ C:\Users\think\AppData\Roaming\npm-cache\_prebuilds\34c369-usb-v1.6.3-node-v83-win32-x64.tar.gz
prebuild-install http request GET https://github.com/tessel/node-usb/releases/download/v1.6.3/usb-v1.6.3-node-v83-win32-x64.tar.gzprebuild-install http 404 https://github.com/tessel/node-  usb/releases/download/v1.6.3/usb-v1.6.3-node-v83-win32-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=14.15.3 runtime=node arch=x64 libc= platform=win32)

C:\Users\think\AppData\Roaming\npm\node_modules\usb>if not defined npm_config_node_gyp (node       "D:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "D:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack     at VisualStudioFinder.fail (D:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
gyp ERR! stack     at D:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (D:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
gyp ERR! stack     at D:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
gyp ERR! stack     at D:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
gyp ERR! stack     at D:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
gyp ERR! stack     at D:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:315:5)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at maybeClose (internal/child_process.js:1048:16)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\think\AppData\Roaming\npm\node_modules\usb
gyp ERR! node -v v14.15.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! usb@1.6.3 install: `prebuild-install --verbose || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the usb@1.6.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!     C:\Users\think\AppData\Roaming\npm-cache\_logs\2021-01-06T12_01_17_433Z-debug.log

...

?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
  • 序言:七十年代末好渠,一起剝皮案震驚了整個濱河市昨稼,隨后出現(xiàn)的幾起案子节视,更是在濱河造成了極大的恐慌,老刑警劉巖假栓,帶你破解...
    沈念sama閱讀 217,542評論 6 504
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件寻行,死亡現(xiàn)場離奇詭異,居然都是意外死亡但指,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,822評論 3 394
  • 文/潘曉璐 我一進店門抗楔,熙熙樓的掌柜王于貴愁眉苦臉地迎上來棋凳,“玉大人,你說我怎么就攤上這事连躏∈T溃” “怎么了?”我有些...
    開封第一講書人閱讀 163,912評論 0 354
  • 文/不壞的土叔 我叫張陵入热,是天一觀的道長拍棕。 經(jīng)常有香客問我,道長勺良,這世上最難降的妖魔是什么绰播? 我笑而不...
    開封第一講書人閱讀 58,449評論 1 293
  • 正文 為了忘掉前任,我火速辦了婚禮尚困,結果婚禮上蠢箩,老公的妹妹穿的比我還像新娘。我一直安慰自己事甜,他們只是感情好谬泌,可當我...
    茶點故事閱讀 67,500評論 6 392
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著逻谦,像睡著了一般掌实。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上邦马,一...
    開封第一講書人閱讀 51,370評論 1 302
  • 那天贱鼻,我揣著相機與錄音,去河邊找鬼滋将。 笑死忱嘹,一個胖子當著我的面吹牛,可吹牛的內容都是我干的耕渴。 我是一名探鬼主播拘悦,決...
    沈念sama閱讀 40,193評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼橱脸!你這毒婦竟也來了础米?” 一聲冷哼從身側響起分苇,我...
    開封第一講書人閱讀 39,074評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎屁桑,沒想到半個月后医寿,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,505評論 1 314
  • 正文 獨居荒郊野嶺守林人離奇死亡蘑斧,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 37,722評論 3 335
  • 正文 我和宋清朗相戀三年靖秩,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片竖瘾。...
    茶點故事閱讀 39,841評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡沟突,死狀恐怖,靈堂內的尸體忽然破棺而出捕传,到底是詐尸還是另有隱情惠拭,我是刑警寧澤,帶...
    沈念sama閱讀 35,569評論 5 345
  • 正文 年R本政府宣布庸论,位于F島的核電站职辅,受9級特大地震影響,放射性物質發(fā)生泄漏聂示。R本人自食惡果不足惜域携,卻給世界環(huán)境...
    茶點故事閱讀 41,168評論 3 328
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望鱼喉。 院中可真熱鬧涵亏,春花似錦、人聲如沸蒲凶。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,783評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽旋圆。三九已至宠默,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間灵巧,已是汗流浹背搀矫。 一陣腳步聲響...
    開封第一講書人閱讀 32,918評論 1 269
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留刻肄,地道東北人瓤球。 一個月前我還...
    沈念sama閱讀 47,962評論 2 370
  • 正文 我出身青樓,卻偏偏與公主長得像敏弃,于是被迫代替她去往敵國和親卦羡。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 44,781評論 2 354

推薦閱讀更多精彩內容