更漂亮(v 3.16.0)可以正常工作,但现在却出现此错误:
["ERROR" - 6:04:46 PM] Error resolving prettier configuration for /Users/vorousjames/.../.../.../Component.js
EPERM: operation not permitted, scandir '/Users/vorousjames/Desktop'
Error: EPERM: operation not permitted, scandir '/Users/vorousjames/Desktop'
at Object.readdirSync (fs.js:795:3)
at Object.fs.readdirSync (electron/js2c/asar.js:643:39)
at Object.fs.readdirSync (electron/js2c/asar.js:643:39)
at traverseFolder (/Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/node_modules/prettier/index.js:20603:20)
at traverseFolder (/Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/node_modules/prettier/index.js:20610:12)
at traverseFolder (/Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/node_modules/prettier/index.js:20610:12)
at findRoot (/Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/node_modules/prettier/index.js:20619:10)
at maybeParse (/Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/node_modules/prettier/index.js:20639:14)
at editorconfigAsyncNoCache (/Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/node_modules/prettier/index.js:20646:26)
at editorconfigAsyncNoCache (/Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/node_modules/prettier/index.js:16412:24)
at /Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/node_modules/prettier/index.js:22874:12
at Array.map (<anonymous>)
at _resolveConfig (/Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/node_modules/prettier/index.js:22873:38)
at Object.resolveConfig (/Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/node_modules/prettier/index.js:22905:10)
at t.ConfigResolver.<anonymous> (/Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/dist/extension.js:1:241023)
at Generator.next (<anonymous>)
at /Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/dist/extension.js:1:239583
at new Promise (<anonymous>)
at n (/Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/dist/extension.js:1:239328)
at t.ConfigResolver.resolveConfig (/Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/dist/extension.js:1:240963)
at t.ConfigResolver.<anonymous> (/Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/dist/extension.js:1:239824)
at Generator.next (<anonymous>)
at /Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/dist/extension.js:1:239583
at new Promise (<anonymous>)
at n (/Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/dist/extension.js:1:239328)
at t.ConfigResolver.getPrettierOptions (/Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/dist/extension.js:1:239755)
at t.default.<anonymous> (/Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/dist/extension.js:1:352693)
at Generator.next (<anonymous>)
at s (/Users/vorousjames/.vscode/extensions/esbenp.prettier-vscode-3.16.0/dist/extension.js:1:347972)
我发现有人建议运行npm cache clean
,但是npm现在可以自我修复损坏。.
有人知道如何解决吗?