随笔分类 -  node.js

node.js
摘要:客户端启动Node.js应用,用node index.js这样可以正常启动应用,但是如果断开客户端连接,应用也就随之停止了。也就是说这样的启动方式没有给应用一个守护线程 首先需要安装一个叫做forever的骚包 安装 全局安装 npm install forever -g 2.创建软链接(根据自己n 阅读全文
posted @ 2023-01-04 17:21 Samuel-Leung 阅读(725) 评论(0) 推荐(0) 编辑
摘要:第一种 利用Map数据结构去重 function a(arr) { let map = new Map(); let array = new Array(); // 数组用于返回结果 for (let i = 0; i < arr.length; i++) { if (map.has(arr[i]) 阅读全文
posted @ 2022-09-15 10:49 Samuel-Leung 阅读(997) 评论(0) 推荐(0) 编辑
摘要:node-sass安装失败,提示如下: gyp verb check python checking for Python executable "python" in the PATH gyp verb `which` succeeded python D:\Program Files\Pytho 阅读全文
posted @ 2021-10-19 10:59 Samuel-Leung 阅读(5003) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示