随笔分类 -  Node.js

摘要:1.index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="view 阅读全文
posted @ 2022-03-24 17:27 半糖也甜吖 阅读(56) 评论(0) 推荐(0)
摘要:1. pnpm: pnpm config set electron_mirror "https://npm.taobao.org/mirrors/electron/" npm: npm config set electron_mirror "https://npm.taobao.org/mirror 阅读全文
posted @ 2021-11-07 10:27 半糖也甜吖 阅读(4485) 评论(0) 推荐(0)
摘要:1.下载url https://files-cdn.cnblogs.com/files/jwyblogs/node-sass.zip 2.将下载的压缩包放到node_cache中,示例: E:\Install\NodeRepository\node_cache\node-sass npm confi 阅读全文
posted @ 2021-01-19 10:58 半糖也甜吖 阅读(13226) 评论(0) 推荐(0)
摘要:注意:在操作之前建议先把整个文章看完,在决定要不要配置!!!!! 1.下载 地址:http://nodejs.cn/download/ 根据系统对应版本下载文件 2.安装 下载完成直接安装,默认安装在C盘,可更改路径,路径不要有中文 3.验证 安装完成后, win7系统: window键+r,打开c 阅读全文
posted @ 2019-12-14 15:06 半糖也甜吖 阅读(1184) 评论(0) 推荐(0)
摘要:1.环境 采用12.13.x版本 2.创建server.js 文件内容如下: 1 let http = require("http"); 2 let fs = require("fs"); 3 4 let server = http.createServer((req, res) => { 5 if 阅读全文
posted @ 2019-12-07 15:25 半糖也甜吖 阅读(450) 评论(0) 推荐(0)