
node
Jo@mykine
码到成功
展开
-
curl请求接口获取gzip压缩数据返回乱码问题解决办法
使用curl请求一个图片合成的接口,返回的是乱码,请求header中包含’Accept-Encoding:gzip’解决办法:是在curl的opt中设置CURLOPT_ENCODING为’gzip,deflate’来解析gzip内容curl_setopt($ch, CURLOPT_ENCODING, ‘gzip,deflate’); $headerArr = []; $h...原创 2020-03-31 21:11:23 · 1687 阅读 · 0 评论 -
create-react-app 创建项目没有src目录,提示you're using an outdated version of create-react
报错信息:A template was not provided. This is likely because you’re using an outdated version of create-react-app.Please note that global installs of create-react-app are no longer supported原因是create-r...原创 2019-12-26 19:56:47 · 3187 阅读 · 0 评论 -
mac上运行前端命令报错npm ERR! permissions
在mac上搭建好环境后运行reactjs项目时,使用命令出现报错:“npm ERR! permissions …”问题很可能就是用户权限不够,使用 sudo 命令 就可以了比如: sudo npm install -g create-react-app...原创 2019-10-28 21:05:10 · 351 阅读 · 0 评论