Warning: Accessing non-existent property xxxx of module exports inside circular dependency

深碍√TFBOYSˉ_ 2023-01-03 04:27 206阅读 0赞

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

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

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


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

发表评论

表情:
评论列表 (有 0 条评论,206人围观)

还没有评论,来说两句吧...

相关阅读