随笔分类 -  ERROR中心

各种报错处理方案记录
摘要:解决方案 .eslintrc.js中设置: parserOptions: { sourceType: 'module' } 重启编译即可 阅读全文
posted @ 2020-03-11 11:07 丹哥不是哥 阅读(12432) 评论(0) 推荐(0)
摘要:原因 因为当前文件的解析语法方式,与async await所需要的语法环境不一致导致的 解决方案 在.eslintrc.js中添加 "parserOptions": { "ecmaVersion": 8 }, 参考 https://github.com/eslint/eslint/issues/83 阅读全文
posted @ 2020-03-10 21:11 丹哥不是哥 阅读(2910) 评论(0) 推荐(2)
摘要:解决方案 1. 安装依赖 ``` npm install eslint-plugin-vue ``` 2. 修改.eslintrc.js文件 ``` parser: 'vue-eslint-parser', 3. 重启node即可 ## 参考处 https://www.cnblogs.com/li1 阅读全文
posted @ 2020-03-10 11:27 丹哥不是哥 阅读(9070) 评论(0) 推荐(0)
摘要:解决方法,参考https://www.cnblogs.com/Wilson6/p/12055389.html 展开: 缺少python2.7支持 可快速使用以下语句完成安装 npm install --global --production windows-build-tools 阅读全文
posted @ 2020-03-04 14:04 丹哥不是哥 阅读(37927) 评论(0) 推荐(2)
摘要:寻找网上亲测有效解决方案总结如下: 如果报timeout,切换代理 npm config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g npm install --no-optional npm i node-sas 阅读全文
posted @ 2020-03-04 13:59 丹哥不是哥 阅读(801) 评论(0) 推荐(0)