1、无法安装node msi程序
直接下载压缩包,解压,然后设置环境变量
2、node -v时出现 无法定位程序输入点xxx dll之类的问题
设置系统变量NODE_SKIP_PLATFORM_CHECK,变量值 1
3、创建项目时报错
node:os:68
throw new ERR_SYSTEM_ERROR(ctx);
打开\node-v16.16.0-win-x86\node_modules@vue\cli\node_modules@achrinza\node-ipc\entities\Defaults.js
在const os = require(‘os’);后增加一代代码
const os = require('os');
os.hostname=()=>"localhost";
4、nodemon : 无法将“nodemon”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次
1 打开
管理员: PowerShell
2 输入
Set-ExecutionPolicy RemoteSigned
感谢各位博主分享
https://developer.aliyun.com/article/1472751
https://blog.csdn.net/BJBlogo/article/details/130691266
https://blog.csdn.net/pzpcxy520/article/details/145166787