vscode遇到的常见问题

1、Syntax Error: TypeError: token.type.endsWith is not a function

解决方法:

    1. 直接把 babel-eslint 降级, 写死为 ^8.2.2
    2.  删除 node_modules
    3. 重新下载依赖

2、Unexpected trailing comma (comma-dangle)

解决方法:

 

 

3、Install fail! Error: [tui-editor@1.3.3 › tui-chart@3.11.3 › raphael@git+https://github.com/nhn/raphael.git#2.2.0-c] Run "C:\WINDOWS\system32\cmd.exe /d /s /c git clone https://github.com/nhn/raphael.git F:\2down\zx-fore-1228\node_modules\.tmp\eb28315b-8e99-40b4-b4eb-4or, exit code 128fa885214be7" error, exit code 128Error: [tui-editor@1.3.3 › tui-chart@3.11.3 › raphael@git+https://github.com/nhn/raphael.git#2.2.0-c]

解决方法:npm config set registry http://registry.npmjs.org/

 

posted @ 2022-01-10 15:39  太极面  阅读(3561)  评论(0编辑  收藏  举报