问题重现1234567(node:2058) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency(Use `node --trace-warnings ...` to show where the warning was created)(node:2058) Warning: Accessing non-existent property
0 Comments
问题重现
1 2 3 4 5 6 7
(node:2058) Warning: Accessing non-existent property'lineno' of module exports inside circular dependency (Use `node--trace-warnings ...` to show where the warning was created) (node:2058) Warning: Accessing non-existent property'column' of module exports inside circular dependency (node:2058) Warning: Accessing non-existent property'filename' of module exports inside circular dependency (node:2058) Warning: Accessing non-existent property'lineno' of module exports inside circular dependency (node:2058) Warning: Accessing non-existent property'column' of module exports inside circular dependency (node:2058) Warning: Accessing non-existent property'filename' of module exports inside circular dependency
注意:在使用 hexo g 部署博客的页面时,报出上面错误。说是错误,其实只是警告信息,如不在意,可以忽略。但懒猪有强迫症,一定要解决该问题!
查看版本
通过 npm -v 可以查看 npm 版本:
1 2
root@dusays:~# npm -v 6.14.8
通过 node -v 可以查看 Node.js 版本:
1 2
root@dusays:~# node -v v12.18.2
安装工具
1 2 3 4
root@dusays:~# npm i -g n /usr/local/bin/n -> /usr/local/lib/node_modules/n/bin/n + n@7.3.0 added 1 package from 2 contributors in 4.265s
Note: the nodecommand changed locationand the old locationmay be remembered in your current shell. old : /usr/bin/node new : /usr/local/bin/node To reset the command locationhash either start a new shell, or execute PATH="$PATH"
4 评论