npm install 报错如下,
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @biomejs/biome@1.9.4 postinstall: `node scripts/postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @biomejs/biome@1.9.4 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2025-05-26T09_41_00_678Z-debug.log
根据错误信息,@biomejs/biome
的 postinstall
脚本执行失败。以下是分步解决方案:
1. 检查 Node.js 和 npm 版本
确保 Node.js 版本符合 Biome 的要求(通常需要较新版本):
bash
node -v # 检查 Node.js 版本&