学习babel(转码器)时问题解决:SyntaxError: D:\js-demo-study\12.13\Babeltest.babelrc: Error while parsing JSON - Unexpected EOF at line 1 column 2 of the JSON5 data. Still to read: ""
1、powershell的执行策略修改,
参考:
https://docs.microsoft.com/zh-cn/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.2
Get-ExecutionPolicy -List
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
2、保存.babelrc(我原因是没有保存这个出现问题,同理需要编写这个文件)
{
"presets": [],
"plugins": []
}