1姜凄、
問題:缺少node環(huán)境
解決:安裝node
2身冀、
問題:登錄失敗
解決:要啟用中國版的leetcode
https://jingyan.baidu.com/article/2c8c281d0b9c0d4009252a57.html
3秒梳、
問題:Problem no found !
解決:Add id field to match the problem?
前往leetCode插件路徑修改源碼:
/Users/用戶名/.vscode/extensions/shengchen.vscode-leetcode-0.12.0/node_modules/vsc-leetcode-cli/lib/core.js
const metaFid=file.exist(keyword)?Number(file.meta(keyword).id):NaN;constproblem=problems.find(function(x){returnx.id===keyword||x.fid===keyword||x.name===keyword||x.slug===keyword||x.fid===metaFid;});
重啟后生效
http://www.reibang.com/p/791b30883031
注:如果報路徑?jīng)]有找到之類的錯誤好像也是修改該段源代碼菇绵。
4寞埠、
問題:The path '~/.leetcode' does not seem to exist anymore on disk.
解決: you can first close your vs code, and then remove the folder:?$HOME/.vscode/extensions/shengchen.vscode-leetcode-0.*.*and reinstall the extension again
https://gitter.im/vscode-leetcode/Lobby?at=5d7f18e53cc2b87edf0f8ba0
總結(jié):
我猜測這些問題的根本原因就是
a、我的電腦文件系統(tǒng)有權(quán)限,一開始我可能就要執(zhí)行該命令sudo mount -uw / (加上權(quán)限)
b、我一開始的時候沒有安裝node環(huán)境
我的電腦文件系統(tǒng)有權(quán)限娇掏,一開始我可能就要執(zhí)行該命令sudo mount -uw / (加上權(quán)限)