V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zsvc
V2EX  ›  程序员

这个问题谁遇到过呀如何处理呀?

  •  
  •   zsvc · 2023-06-17 21:56:42 +08:00 · 924 次点击
    这是一个创建于 506 天前的主题,其中的信息可能已经有所发展或是发生改变。

    环境是 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
        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 版本不兼容的问题。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3130 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 13:52 · PVG 21:52 · LAX 05:52 · JFK 08:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.