会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
文刂刂
心有猛虎,细嗅蔷薇。
博客园
首页
新随笔
联系
订阅
管理
2021年4月6日
解决:Error: Can't find Python executable "python", you can set the PYTHON env variable
摘要: 以 windows 平台为例,管理员权限执行以下命令,安装完即可: $ npm install --global --production windows-build-tools
阅读全文
posted @ 2021-04-06 13:24 文刂刂
阅读(225)
评论(1)
推荐(0)
2020年5月27日
npm run build 打包报错:ERROR in yifupay.js from UglifyJs相关
摘要: 一般情况下是一位webpack打包的时候没有把vue文件成功转换成es6语法; 具体解决步骤:1、查看有没有安装babel-loader,没有npm安装; 2、修改webpack打包规则文件: rules: [{ test: /\.js[x]?$/, exclude: /node_modules/,
阅读全文
posted @ 2020-05-27 17:17 文刂刂
阅读(200)
评论(0)
推荐(0)
2020年4月16日
区分环境登陆(避免代码冗长)
摘要: 1 export const Env = { 2 }; 3 export function getEnv(hostName) { 4 if (xxx.test(hostName)) { 5 return '环境' 6 } 7 } 8 9 class Config { 10 constructor(e
阅读全文
posted @ 2020-04-16 20:18 文刂刂
阅读(124)
评论(0)
推荐(0)
公告