npm run dev时 一堆报错 (node:37693) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency

(node:37693) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:37693) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:37693) Warning: Accessing non-existent property 'to' of module exports inside circular dependency

 

 

    • 可切换node至v10.版本
    • 升级shelljs到 v0.8.4 即可解决
    • 升级shelljs:npm install shelljs@0.8.4 --save

 

 

npm install shelljs@0.8.4 --save

 
posted @ 2021-11-29 18:12  phpwyl  阅读(4767)  评论(0编辑  收藏  举报