qld-cf / electron-react-tpl

electron12 + umi3.2 + typescript react 16.12 + redux + antDesign 4.0 + eslint tslint react-tslint脚手架, 下载即用,仅供学习参考
155 stars 37 forks source link

打包失败,报错The name of the file cannot be resolved by the system.,这是什么问题?? #10

Open chenbosns opened 3 years ago

chenbosns commented 3 years ago

image

⨯ open F:\patent-service-ui-electron\node_modules\umi\node_modules\@umijs\preset-built-in\node_modules\joi2types\node_modules\json-schema-to-typescript\node_modules\cli-color\node_modules\memoizee\node_modules\event-emitter\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\package.json: The name of the file cannot be resolved by the system. github.com/develar/app-builder/pkg/node-modules.(Collector).resolveDependency Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:192 github.com/develar/app-builder/pkg/node-modules.(Collector).processDependencies Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:95 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:56 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 github.com/develar/app-builder/pkg/node-modules.(Collector).readDependencyTree Y:/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:72 ⨯ F:\patent-service-ui-electron\node_modules_app-builder-bin@3.5.10@app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE stackTrace= Error: F:\patent-service-ui-electron\node_modules_app-builder-bin@3.5.10@app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE

qld-cf commented 3 years ago

@chenbosns package.json中的name是否是中文?尝试替换为英文后再试试,还有问题的话,可以发下你的仓库链接我看下

chenbosns commented 3 years ago

@qld-cf 问题解决了,用cnpm安装依赖不能打包,需要用yarn,thanks