文章目录
linux安装
原文:https://www.cnblogs.com/wasi-991017/p/13702313.html
我在做操作系统实验时,需要安装软件包,但是一直报错,最后终于找到了这篇文章,还有别的办法也可以修复,但是很麻烦。
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -f install
localhost拒绝连接
我是用node.js的http创建的服务器,然后不能访问本机(本机作为服务器),成功解决。
原文:https://blog.csdn.net/qq_41999455/article/details/86630916
js代码,这里没有对请求做出任何响应,所以会一直转圈圈。
const http = require('http');
const server = http.createServer();
server.on('request', function (req, res) {
console.log("收到客服端请求");
})
server.listen(8080, function () {
console.log('启动服务器 http://localhost:8080');
})
nrm 安装后使用nrm不能用
nrm : 无法加载文件 C:\Users\chenx\AppData\Roaming\npm\nrm.ps1,因为在此系统上禁止运行脚本。
解决办法
管理员权限打开终端运行:Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
成功解决!!!
使用Vue脚手架import组件报错
飘红提示
Already included file name xxx differs from file name xxx only in casing.
The file is in the program because:
Imported via xxx from file xxx
Root file specified for compilation
Root file specified for compilation
解决方法
好像是vscode的问题,频繁修改组件就会飘红,实际上是不影响运行的,重启vscode就好了。