vue项目终端'export' is not recognized as an internal or external command, operable program or batch file.
时间: 2023-09-21 09:07:41 浏览: 327
这个错误提示是因为你在 Windows 系统的终端中执行了类 Unix 系统的命令,Windows 系统和 Unix 系统对命令的处理方式是不同的。
在 Windows 系统下,可以使用 `set` 命令来设置环境变量,而不是 `export` 命令。你需要将 `export` 命令替换为 `set` 命令。
例如,如果你在执行以下命令:
```
export NODE_ENV=production
```
你需要将其替换为以下命令:
```
set NODE_ENV=production
```
这样就可以在 Windows 系统的终端中正确设置环境变量了。
相关问题
'vue' is not recognized as an internal or external command, operable program or batch file.
This error message usually occurs when Vue.js has not been installed properly or its path has not been properly configured. To fix this issue, make sure you have installed Vue.js and that its path has been added to your system's PATH environment variable. You can also try re-installing Vue.js and re-checking its path configuration.
阅读全文