摘要: nodemon运行 提示错误:无法加载文件 C:\Users\gxf\AppData\Roaming\npm\nodemon.ps1,因为在此系统上禁止运行脚本。 这是你笔记本禁止运行脚本,解决办法 1.管理员身份打开powerShell 2.输入set-ExecutionPolicy Remote 阅读全文
posted @ 2020-04-06 16:20 leahtao 阅读(2485) 评论(0) 推荐(1)
摘要: 一、http模块 const http = require('http') http.createServer(function(req,res) { console.log(req.url) //获取url里面携带的参数 res.writeHead(200,{'Content-type':"tex 阅读全文
posted @ 2020-04-06 16:01 leahtao 阅读(220) 评论(0) 推荐(0)
摘要: 用html-withimg-loader 打包html里面通过src引入的图片时发错 这是因为它和html-webpack-plugin产生冲突; 原因是file-loader升级了,以前4.2的时候是没事的,现在file-loader升级到5.0了,所以需要在file-loader的options 阅读全文
posted @ 2020-04-06 00:40 leahtao 阅读(527) 评论(0) 推荐(0)