切换深色或浅色模式
安装Nodejs | Windows
Node.js 是一个免费、开源、跨平台的 JavaScript 运行时环境,可让开发人员创建服务器、Web 应用程序、命令行工具和脚本。
Nodejs
- 按下
Windows徽标+X - 选中
终端管理员 - 选择所需版本,输入后回车:
shell
winget install OpenJS.NodeJS
winget install OpenJS.NodeJS.LTS
winget install OpenJS.NodeJS.23
winget install OpenJS.NodeJS.22
winget install OpenJS.NodeJS.21
winget install OpenJS.NodeJS.20
winget install OpenJS.NodeJS.19
winget install OpenJS.NodeJS.18
winget install OpenJS.NodeJS.17
winget install OpenJS.NodeJS.16
winget install OpenJS.NodeJS.15
winget install OpenJS.NodeJS.14
winget install OpenJS.NodeJS.12
winget install OpenJS.NodeJS.10
winget install OpenJS.NodeJS.8
winget install OpenJS.NodeJS.7
winget install OpenJS.NodeJS.6
winget install OpenJS.NodeJS.4未签名的本地脚本
允许未签名的本地脚本
- 按下
Windows徽标+X - 选中
终端管理员 - 输入并回车:
shell
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force检查运行策略
- 按下
Windows徽标+X - 选中
终端 - 输入并回车:
shell
Get-ExecutionPolicy -Scope CurrentUser撤销允许未签名的本地脚本
- 按下
Windows徽标+X - 选中
终端管理员 - 输入并回车:
shell
Set-ExecutionPolicy Restricted -Scope CurrentUser -Force