首页 前端知识 npm run dev报错npm WARN lifecycle The node binary used for scripts is /usr/local/opt/node@14/bin/node

npm run dev报错npm WARN lifecycle The node binary used for scripts is /usr/local/opt/node@14/bin/node

2024-06-17 09:06:14 前端知识 前端哥 24 52 我要收藏

报错

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

转载请注明出处或者链接地址:https://www.qianduange.cn//article/12513.html
标签
评论
发布的文章

HTML5 新增元素

2024-06-22 10:06:20

【前端】HTML5基础

2024-06-22 10:06:36

大家推荐的文章
会员中心 联系我 留言建议 回顶部
复制成功!