环境是 msoc m2
sudo npm install ffi -g npm ERR! code 1 npm ERR! path /usr/local/lib/node_modules/ffi/node_modules/ref npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using [email protected] npm ERR! gyp info using [email protected] | darwin | x64 npm ERR! gyp info find Python using Python version 3.9.6 found at "/Applications/Xcode.app/Contents/Developer/usr/bin/python3" npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: Invalid version number: 10.15 npm ERR! gyp ERR! stack at getNodeDir (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:57:25) npm ERR! gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:31:7 npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:77:11) npm ERR! gyp ERR! System Darwin 22.5.0 npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /usr/local/lib/node_modules/ffi/node_modules/ref npm ERR! gyp ERR! node -v v18.16.0 npm ERR! gyp ERR! node-gyp -v v9.3.1 npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in: npm ERR! /Users/zhengbin/.npm/_logs/2023-06-17T13_54_58_253Z-debug-0.log
1
xuanbg 2023-06-18 08:33:07 +08:00
gyp info it worked if it ends with ok npm ERR! gyp info using [email protected] npm ERR! gyp info using [email protected]
node 版本不兼容的问题。 |