我正在尝试使用PowerShell将环境变量传递给Node.js:
C:\Users\everton\my-project> $env:MY_VAR = 8000 node index.js
但是我在PowerShell中遇到错误:
令牌'节点'意外表达或声明
javascript windows powershell node.js
javascript ×1
node.js ×1
powershell ×1
windows ×1