我想在我的 ubuntu 上安装 pyright。为此,我首先安装了 npm(最新版本):
npm install -g npm@latest
但是当我安装一个 pyright 时,我得到了这些错误:
/home/user/.npm-global/bin/pyright-langserver -> /home/user/.npm-global/lib/node_modules/pyright/langserver.index.js
/home/user/.npm-global/bin/pyright -> /home/user/.npm-global/lib/node_modules/pyright/index.js
npm WARN notsup Unsupported engine for pyright@1.1.222: wanted: {"node":">=12.0.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: pyright@1.1.222
你能告诉我这是否可以以某种方式解决吗?