Can't find node in PATH, trying to find a node binary on your system

vue yekong 38℃

Can't find node in PATH, trying to find a node binary on your system
husky > pre-commit (node v8.4.0)
lint-staged requires at least version 8.6.0 of Node, please upgrade
husky > pre-commit hook failed (add --no-verify to bypass)
项目配置 husky 在提交前自动校验

这时候只要把项目的package.json文件中节点devDependencies下的husky库删掉,然后重新npm i一次即可。

或者直接在项目根目录下执行

npm uninstall husky --save

也可以,再次提交,自动化测试功能就屏蔽掉了

喜欢 (0)