npm install 报错

问题遇到的现象和发生背景

版本:nodejs 16.13.0 npm 8.1

问题相关代码,请勿粘贴截图

执行npm install 时

运行结果及报错内容

报错如下:
npm ERR! code 1
npm ERR! path D:\project\vue-element-admin\node_modules\husky
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node husky install
npm ERR! 'node' is not recognized as an internal or external command,
npm ERR! operable program or batch file.

我的解答思路和尝试过的方法
我想要达到的结果

不报错,能正常install

用npm i 试下

node npm啥的配置好了吗,报node命令不能识别

node -v看看 “node”未被识别为内部或外部命令,

把项目目录中node_modules文件夹删掉,重新npm install一下,不行就cnpm i

一样的错 唉

检查一下package.json文件里面的scipts里面是不是"prepare":"npx husky install"是否少了一个npx