安装错误:预期Node js版本>=14.15.0,但发现12.22.9

slmsl1lt  于 5个月前  发布在  Node.js
关注(0)|答案(1)|浏览(93)

npm错误!node-pre-gyp信息如果以ok结尾则有效npm错误!node-pre-gyp信息使用email protected(https://stackoverflow.com/cdn-cgi/l/email-protection) npm错误!node-pre-gyp信息使用email protected(https://stackoverflow.com/cdn-cgi/l/email-protection)|达尔文|arm 64 npm错误!node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v115-darwin-unknown-arm64.tar.gz npm错误!node-pre-gyp错误!install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v115-darwin-unknown-arm64.tar.gz npm错误!node-pre-gyp警告预构建的二进制文件无法为email protected(https://stackoverflow.com/cdn-cgi/l/email-protection)和email protected(https://stackoverflow.com/cdn-cgi/l/email-protection)安装(node-v115 ABI,未知)npm ERR!node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v115-darwin-unknown-arm64.tar.gz npm ERR!gyp info it worked if it ends with ok npm ERR!gyp info using email protected(https://stackoverflow.com/cdn-cgi/l/email-protection) npm错误!gyp info using email protected(https://stackoverflow.com/cdn-cgi/l/email-protection)|达尔文|arm 64 npm错误!gyp info ok npm错误!gyp info it worked if it ends with ok npm错误!gyp info using email protected(https://stackoverflow.com/cdn-cgi/l/email-protection) npm错误!gyp info using email protected(https://stackoverflow.com/cdn-cgi/l/email-protection)|达尔文|arm 64 npm错误!gyp info find Python using Python version 3.9.6 found at“/Library/Developer/CommandLineTools/usr/bin/python3”npm ERR!gyp info spawn /Library/Developer/CommandLineTools/usr/bin/python3
我试着安装一个npm包,但无法安装。

qij5mzcb

qij5mzcb1#

请尝试使用以下命令强制安装该npm包:

npm install package_name --force

字符串
例如,假设你想安装express,它给出了上面的错误,那么你可以安装它使用:

npm install express --force

相关问题