按照官方文档 执行打包
总出现类似
`npm ERR! Cannot read properties of null (reading 'matches')

npm ERR! A complete log of this run can be found in:
`
问了半天豆包,通义,还是csdn的兄弟好使。简单粗暴

npm cache clean --force
npm update -g npm
npm update

以下为详细

PS C:\Users\volvo\Desktop\eletc\betterCallApp> npm install
npm error Cannot read properties of null (reading 'matches')
npm error A complete log of this run can be found in: C:\Users\volvo\AppData\Local\npm-cache\_logs\2025-06-03T15_36_56_742Z-debug-0.log
PS C:\Users\volvo\Desktop\eletc\betterCallApp> npm cache clean --force
npm warn using --force Recommended protections disabled.
PS C:\Users\volvo\Desktop\eletc\betterCallApp> npm update -g npm

removed 14 packages, and changed 65 packages in 11s
PS C:\Users\volvo\Desktop\eletc\betterCallApp> npm update
npm warn Unknown user config "sass_binary_site". This will stop working in the next major version of npm.
npm warn Unknown user config "electron_mirror". This will stop working in the next major version of npm.
npm warn Unknown user config "electron_builder_binaries_mirror". This will stop working in the next major version of npm.
npm warn skipping integrity check for git dependency ssh://git@github.com/electron/node-gyp.git
npm warn deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated lodash.get@4.4.2: This package is deprecated. Use the optional chaining (?.) operator instead.
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
npm warn deprecated sudo-prompt@9.2.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
npm warn deprecated boolean@3.2.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

added 369 packages, removed 1 package, and changed 3 packages in 1m

70 packages are looking for funding
√ Loading configuration
√ Resolving make targets
  › Making for the following targets:
√ Running package command
  √ Preparing to package application
√ Loading configuration
√ Resolving make targets
  › Making for the following targets:
√ Running package command
  √ Preparing to package application
  √ Running packaging hooks
√ Loading configuration
√ Resolving make targets
  › Making for the following targets:
√ Running package command
  √ Preparing to package application
  √ Running packaging hooks
    √ Running generateAssets hook
    √ Running prePackage hook
  √ Packaging application
    √ Packaging for x64 on win32 [16s]
  √ Running postPackage hook
√ Running preMake hook
√ Making distributables
  √ Making a squirrel distributable for win32/x64 [2m3s]
√ Running postMake hook
  › Artifacts available at: C:\Users\volvo\Desktop\eletc\betterCallApp\out\make

(node:17348) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:17348) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:17348) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:17348) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:17348) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:17348) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:17348) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:17348) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:17348) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:17348) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:17348) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:17348) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:17348) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
PS C:\Users\volvo\Desktop\eletc\betterCallApp>

牙小木木
1.5k 声望84 粉丝

iamtb.cn


引用和评论

0 条评论