西南IT社区
    • 注册
    • 登录
    • 搜索
    • 主页
    • 问答
    • 话题
    • 热门
    • 圈子
    • 工作机会
    • 活动
    • 项目

    if not defined npm_config_node_gyp

    技术答疑
    node gyp
    1
    1
    131
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • zhazhuipian7
      zhazhuipian7 最后由 编辑

      添加 node 鼠标库 mouse-hooks

      安装过程中遇到这个问题无法解决,网上搜索到的方案也不管用, 此问题已经困扰1天了

      error F:\app\node_modules\mouse-hooks: Command failed.
      Exit code: 1
      Command: npm run rebuild
      Arguments:
      Directory: F:\app\node_modules\mouse-hooks
      Output:
      > mouse-hooks@0.4.1 rebuild F:\app\node_modules\mouse-hooks
      > node-gyp rebuild
      
      
      F:\app\node_modules\mouse-hooks>if not defined npm_config_node_gyp (node "C:\Users\weitai\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\weitai\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
        windows.cc
        win_delay_load_hook.cc
      C:\\Users\\weitai\\AppData\\Local\\node-gyp\\Cache\\14.15.5\\x64\\node.lib : fatal error LNK1106:  0x377074 [F:\app\node_modules\mouse-hooks\build\addon.vcxproj]
      gyp ERR! build error
      gyp ERR! stack Error: `D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
      gyp ERR! stack     at ChildProcess.onExit (C:\Users\weitai\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:194:23)
      gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
      gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
      gyp ERR! System Windows_NT 10.0.21327
      gyp ERR! command "D:\\Program Files\\nodejs\\node.exe" "C:\\Users\\weitai\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
      gyp ERR! cwd F:\app\node_modules\mouse-hooks
      gyp ERR! node -v v14.15.5
      gyp ERR! node-gyp -v v7.1.2
      gyp ERR! not ok
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! mouse-hooks@0.4.1 rebuild: `node-gyp rebuild`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the mouse-hooks@0.4.1 rebuild 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!     C:\Users\weitai\AppData\Roaming\npm-cache\_logs\2021-03-07T10_28_34_716Z-debug.log
      info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
      
      1 条回复 最后回复 回复 引用 0
      • First post
        Last post
      使用HTML构建办公软件 使用HTML构建办公软件 使用HTML构建办公软件
      成
      Y
      洋
      书
      Y
      D
      U
      Y
      娇
      玩
      1
      光
      A
      庆
      小
      U
      Y
      L
      I
      Z
      I
      Y
      C
      Z

      西南地区IT社群(QQ)
      云南
      【昆明网页设计交流吧】243627302
      【昆明nodejs交流吧】 243626749
      【VUE】838405306
      【云南程序员总群】343606807
      【昆明UI设计】104031254
      【云南软件外包】15547313
      贵州
      【PHP/java源码/站长交流群】55692114
      四川
      【成都Java/JavaWeb交流】86669225
      【vaScript+PHP+MySql】116270060
      【UI设计/设计交流学习群】135794928
      重庆
      【诺基亚 JAVA游戏博物馆】 559479780
      【PHP,Java,Python,C++接单】 442103442
      西藏
      社群
      昆明网页设计交流吧
      友情链接
      • Funtask
      • Funtask 社区
      • SUWIS
      ©2019-2021 滇ICP备20006698号