【已解决】fnm管理node后sourcetree报错node not found
fnm管理node后sourcetree报错node not found
win操作系统用fnm管理node版本,sourcetree切换分支swith branch报错:.git/hooks/pre-commit: line 32: node: command not found
.git/hooks/post-checkout: line 32: node: command not found
解决思路:
将fnm管理的node某个版本或者默认版本的路径设为环境变量PATH。
实际操作:
这里我使用默认版本node:
新增环境变量 NODE_DEFAULT
C:\Users\XxxUser\AppData\Roaming\fnm\aliases\default
PATH追加:
%NODE_DEFAULT%
浙公网安备 33010602011771号