NodeJS相关操作
NodeJS相关实现
汪 同 学 丶
这个作者很懒,什么都没留下…
展开
-
记录:淘宝镜像
npm 淘宝镜像// 由于cnpm经常出现奇葩问题,所以选择使用以下方式npm i xxx --registry https://registry.npm.taobao.org原创 2021-03-12 15:50:57 · 408 阅读 · 0 评论 -
记录:npm install 报错问题解决
npm install 安装依赖包时报错 Unexpected end of JSON input while parsing near '....0.0","chalk":"^2.3.0' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\GeoinTech\Ap...原创 2019-02-20 11:55:39 · 1324 阅读 · 0 评论 -
记录:nodejs 裁切图片的方法
1、jimp github文档1、读取本地图片切图jimp.read('本地图片地址', function (err, img) { if (err) throw err img .crop(x坐标起点, y坐标起点, width最终图片宽度, height最终图片高度) .write(result)})2、读取http图片,转成buffer,切成buffer数据const options = { headers: { 'User-Agent': '原创 2020-05-29 18:17:58 · 3746 阅读 · 0 评论