报错
npm WARN lifecycle The node binary used for scripts is /usr/local/opt/node@14/bin/node but npm is using /usr/local/Cellar/node@14/14.21.3_1/libexec/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm
npm WARN lifecycle The node binary used for scripts is /usr/local/opt/node@14/bin/node but npm is using /usr/local/Cellar/node@14/14.21.3_1/libexec/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
was executed with.
直接执行:
npm config set scripts-prepend-node-path true