vue采用的node版本问题,需要降低版本,我用的是14.15.0 版本,项目中使用的vue并不能兼容这个版本,所以需要进行降低版本,所以一开始安装node时就推荐使用nvm进行版本管理。

(Use `node --trace-warnings ...` to show where the warning was created)
(node:4344) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:4344) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:4344) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:4344) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:4344) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:4344) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:4344) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:4344) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
node --trace-warnings queue.js 

这是我从别人那里粘贴来的跟踪错误的命令,其实错误开始已经提示了。
所以直接降低node版本就好,可以直接使用nvm进行版本管理。


nvm的安装教程
首先我们需要卸载已经安装好的node,然后去安装node的文件夹中删除所有残余的文件之后再使用nvm进行安装
nvm安装教程
:https://www.cnblogs.com/gaozejie/p/10689742.html
这是我找到的安装文章,亲测可以使用。

Logo

前往低代码交流专区

更多推荐