trae安装figma一直报错

报错提示:

file:///C:/Users/86182/AppData/Local/npm-cache/_npx/e05028111420be70/node_modules/@jimp/plugin-print/dist/esm/load-bitmap-font.js:7
import xmlPackage from “simple-xml-to-json”;
^^^^^^^^^^
SyntaxError: The requested module ‘simple-xml-to-json’ does not provide an export named ‘default’
at ModuleJob._instantiate (node:internal/modules/esm/module_job:213:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:320:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:606:24)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)

Node.js v20.20.2

已经清楚缓存,但是依然再反复报错,这是为什么

1 个赞

请依次尝试下面的命令

npm cache clean --force
sudo npm cache clean --force
rm -rf ~/.npm/_npx
sudo rm -rf ~/.npm/_npx
1 个赞