Skip to content

Error: Cannot find module '@canghe_ai/wechat-cli-win32-x64/package.json' #2

Description

@geekyouth
PS C:\Users\Geek> npm install -g @canghe_ai/wechat-cli
npm warn deprecated @canghe_ai/wechat-cli@0.2.4: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

added 1 package in 3s
npm notice
npm notice New major version of npm available! 10.9.3 -> 11.13.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.13.0
npm notice To update run: npm install -g npm@11.13.0
npm notice
PS C:\Users\Geek> wechat-cli init
C:\Users\Geek\scoop\persist\nodejs-lts\bin\node_modules\@canghe_ai\wechat-cli\bin\wechat-cli.js:54
  throw e;
  ^

Error: Cannot find module '@canghe_ai/wechat-cli-win32-x64/package.json'
Require stack:
- C:\Users\Geek\scoop\persist\nodejs-lts\bin\node_modules\@canghe_ai\wechat-cli\bin\wechat-cli.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
    at Function.resolve (node:internal/modules/helpers:157:19)
    at getBinaryPath (C:\Users\Geek\scoop\persist\nodejs-lts\bin\node_modules\@canghe_ai\wechat-cli\bin\wechat-cli.js:36:28)
    at Object.<anonymous> (C:\Users\Geek\scoop\persist\nodejs-lts\bin\node_modules\@canghe_ai\wechat-cli\bin\wechat-cli.js:48:16)
    at Module._compile (node:internal/modules/cjs/loader:1706:14)
    at Object..js (node:internal/modules/cjs/loader:1839:10)
    at Module.load (node:internal/modules/cjs/loader:1441:32)
    at Function._load (node:internal/modules/cjs/loader:1263:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\Geek\\scoop\\persist\\nodejs-lts\\bin\\node_modules\\@canghe_ai\\wechat-cli\\bin\\wechat-cli.js'
  ]
}

Node.js v22.20.0
PS C:\Users\Geek>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions