const child_process = require('child_process') // 获取 const version = child_process.execSync... 【Node】child_process 获取 git 分支 9个月前 (07-12) 150 0
1、配置到淘宝服务器 # 配置到淘宝服务器 npm config set registry https://registry.npm.taobao.org ... 【npm】npm设置淘宝镜像 3年前 (2020-09-03) 744 0
1、安装安装egg-mysql模块 npm安装命令如下: npm i egg-mysql --save yarn安装命令如下: yarn add egg-m... 【Node】Egg.js连接mysql 3年前 (2020-01-06) 899 0
1、安装egg-cors模块是专门用来解决egg.js跨域问题 yarn add egg-cors 2、配置config/plugin.js // 跨... 【Node】Egg.js跨域问题 3年前 (2020-01-06) 778 0
今天安装egg.js的报错 fetching npm info of egg-boilerplate-simple ConnectionTimeoutError: Connect... 【egg】安装node框架egg.js的时候报错 3年前 (2019-12-22) 1,470 0
读取文件 var fs = require('fs'); var readFile = fs.createReadStream('fs.txt'); // 设置utf8编... 【Node】node读取文件、写入文件、复制文件 3年前 (2019-12-19) 784 0
今天使用node.js读取文件的时候出现中文乱码问题。开始想到是编码问题,于是设置utf8但是还是不生效的,... 【Node】node读取文件中文乱码问题 3年前 (2019-12-19) 821 0
1、配置环境变量 2、使用管理员身份打开cmd,然后删除安装时默认创建的mongodb服务 sc delete MongoDB ... 【Node】MongoDB启动不了服务 3年前 (2019-12-18) 723 0
1、申请测试号https://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login 获取免费的appID和apps... 【微信开发】微信公众号开发思路 3年前 (2019-12-18) 783 0
配置nginx 在nginx站点配置文件下添加(后面的端口号是node设置的那个服务端端口) location / { proxy_... 【Nginx】使用nginx反向代理node项目 3年前 (2019-11-29) 832 0
pm2启动的node项目访问不了 1、首先查看linux的端口是否有你的node项目的端口 使用命令: netstat -ntlp ... 【node】使用pm2在linux部署node项目访问不了 3年前 (2019-11-29) 898 0