yeoman在nodejs下报waring解决办法

Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
更新于: 2022-02-06 13:50:22

先看一下报warning的截图

当前系统: MacOS

当前node版本: v14.16.1

解决方案

升级npm

npm install -g npm@next 
# OR 
npm install -g npm@latest

I updated the node js

nvm use 14/16

When running the npm i command with powershell, I encountered this problem
"To address all issues (including breaking changes), run: npm audit fix --force "

npm audit fix --force

参考