安装完node.js后,npm install -g openclaw报错npm error code UNABLE_TO_VERIFY_LEAF_SIGNATURE
解决方法:在命令符输入:
·
C:\Users\Administrator>npm install -g openclaw
npm error code UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm error errno UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm error request to https://registry.npmmirror.com/openclaw failed, reason: unable to verify the first certificate; if the root CA is installed locally, try running Node.js with --use-system-ca
npm error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2026-03-07T17_18_17_448Z-debug-0.log
解决方法:
在命令符输入: npm config set strict-ssl false
然后再安装:npm install -g openclaw
安装完后在命令符输入恢复: npm config set strict-ssl true
更多推荐


所有评论(0)