electron框架:electron-egg
解决方式
npm uninstall bytenode
npm install bytenode@1.3.6
node:internal/modules/cjs/loader:928
throw err;
^
Error: Cannot find module ‘node:assert/strict’
Require stack:文章来源:https://www.toymoban.com/news/detail-605024.html
- D:\electron-egg-test\new-electron-egg\electron-egg\node_modules\bytenode\lib\index.js
- D:\electron-egg-test\new-electron-egg\electron-egg\node_modules\ee-bin\tools\encrypt.js
- D:\electron-egg-test\new-electron-egg\electron-egg\node_modules\ee-bin\index.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:925:15)
at Function.Module._load (node:internal/modules/cjs/loader:769:27)
at Module.require (node:internal/modules/cjs/loader:997:19)
at require (node:internal/modules/cjs/helpers:92:18)
at Object. (D:\electron-egg-test\new-electron-egg\electron-egg\node_modules\bytenode\lib\index.js:3:16)
at Module._compile (node:internal/modules/cjs/loader:1108:14)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1137:10)
at Module.load (node:internal/modules/cjs/loader:973:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Module.require (node:internal/modules/cjs/loader:997:19) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘D:\electron-egg-test\new-electron-egg\electron-egg\node_modules\bytenode\lib\index.js’,
‘D:\electron-egg-test\new-electron-egg\electron-egg\node_modules\ee-bin\tools\encrypt.js’,
‘D:\electron-egg-test\new-electron-egg\electron-egg\node_modules\ee-bin\index.js’
]
}
npm ERR! errno 1
npm ERR! vaccine_cold_terminal@1.1.1 encrypt:ee-bin encrypt
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vaccine_cold_terminal@1.1.1 encrypt 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! D:\Program Files\nodejs\node_cache_logs\2023-07-25T08_54_25_868Z-debug.log文章来源地址https://www.toymoban.com/news/detail-605024.html
到了这里,关于electron-egg 加密报错的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!