electron-packager 打包失败
node_modules 的依赖我是用cnpm 安装的,然后执行 electron-packager ./ 计算器 --platform=win32 --overwrite --icon=./static/icon.ico之后报错
日志:
Packaging app for platform win32 x64 using electron v1.8.3
ELOOP: too many symbolic links encountered, stat 'G:\electron\electronTest\node_modules\resolve-dir\node_modules\global-modules\node_modules\resolve-dir\node_modules\global-modules\node_modules\resolve-dir\node_modules\global-modules\node_modules\resolve-dir\node_modules\global-modules\node_modules\resolve-dir\node_modules\global-modules\node_modules\resolve-dir\node_modules\global-modules\node_modules\resolve-dir\node_modules\global-modules\node_modules\resolve-dir\node_modules\global-modules\node_modules\resolve-dir\node_modules\global-modules\node_modules\resolve-dir\node_modules\global-modules\node_modules\resolve-dir\node_modules\global-modules\node_modules\resolve-dir\node_modules\global-modules\node_modules\resolve-dir\node_modules\global-modules\node_modules\resolve-dir\node_modules\global-modules\node_modules\resolve-dir\node_modules\global-modules\node_modules\resolve-dir\node_modules\global-modules'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electrontest@1.0.0 packager: `electron-packager ./ 计算器 --platform=win32 --overwrite --icon=./icon.ico`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electrontest@1.0.0 packager 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\sculpture\AppData\Roaming\npm-cache\_logs\2018-03-07T13_10_24_607Z-debug.log
PS G:\electron\electronTest> npm install
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
删除依赖,使用npm而不用cnpm导入依赖就可以了,请问为什么呢?求教!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论