NODE篇 三月 18, 2022

Typora 使用自定义 Node 脚本上传图片到 MinIO 图床上

文章字数 3.8k 阅读约需 3 mins.

脚本

/* 
 * typora插入图片调用此脚本,上传图片到 MinIO
 */

const path = require('path')
// minio for node.js
const...
查看全文

NODE篇 十月 26, 2019

NodeJs 使用 ES6 语法

文章字数 651 阅读约需 1 mins.

  1. package.json 添加
    "babel": {
        "presets": [
          "es2015"
        ]
      },
    "devDependencies": {
        "babel-cli": "^6.26.0",
        "babel-preset-es2015": "^6.24.1",
        "babel-register": "...
查看全文

NODE篇 十一月 07, 2017

npm install 居然出错了

文章字数 713 阅读约需 1 mins.

今天在安装完nodejs后执行 npm install 居然出错了

npm: relocation error: npm: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.

npm: relocation error: npm: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link...

查看全文
0%