esbuild安装npm报错问题及解决方法(附报错日志)
解决esbuild安装报错(npm ERR! code 1)
我被esbuild的安装报错问题缠了好一阵,终于搞定了。
报错详情
安装时终端抛出如下错误:
npm ERR! code 1 npm ERR! path /home/trie/urban_sniffle/node_modules/esbuild npm ERR! command failed npm ERR! command sh -c -- node install.js npm ERR! node:internal/errors:857 npm ERR! const err = new Error(message); npm ERR! ^ npm ERR! npm ERR! /home/trie/.npm/_logs/2023-06-04T00_28_13_111Z-debug-0.log
解决途径
通过GitHub上的esbuild官方Issue找到了解决方案,调整对应配置后顺利完成安装。
内容的提问来源于stack exchange,提问作者George-Goldman
相关产品推荐
相关产品推荐

