安装新的插件如vue-jsonp之后或者其他单独安装的插件后,点击HbuilderX--发行--网站--H5手机版 进行发布,提示没有权限permission denied, mkdir 创建vue-cli-plugin-uni-optimize下的.tmp文件夹 手动创建也不行
- 发布:2020-08-25 17:25
- 更新:2022-02-25 17:16
- 阅读:2127
产品分类: uniapp/H5
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 10.11.6
浏览器平台: Chrome
浏览器版本: 84.0.4147.105
项目创建方式: CLI
CLI版本号: 4.2.0
操作步骤:
预期结果:
正常打包
正常打包
实际结果:
不能打包,报权限错误,如果使用命令行 npm run build:h5 打包,会报cross-env命令找不到
不能打包,报权限错误,如果使用命令行 npm run build:h5 打包,会报cross-env命令找不到
bug描述:
[HBuilder] 17:00:16.969 ERROR Error: EACCES: permission denied, mkdir '/Users/carol11/eclipse-workspace/bbccangqiong1/mobile/nodemodules/@dcloudio_vue-cli-plugin-uni-optimize@2.0.0-25120200103006@@dcloudio/vue-cli-plugin-uni-optimize/.tmp'
[HBuilder] 17:00:16.976 Error: EACCES: permission denied, mkdir '/Users/carol11/eclipse-workspace/bbccangqiong1/mobile/nodemodules/@dcloudio_vue-cli-plugin-uni-optimize@2.0.0-25120200103006@@dcloudio/vue-cli-plugin-uni-optimize/.tmp'
[HBuilder] 17:00:16.983 at Object.mkdirSync (fs.js:757:3)
[HBuilder] 17:00:16.983 at updateComponents (/Users/carol11/eclipse-workspace/bbccangqiong1/mobile/nodemodules/@dcloudio_vue-cli-plugin-uni-optimize@2.0.0-25120200103006@@dcloudio/vue-cli-plugin-uni-optimize/packages/webpack-optimize-plugin/component.js:52:8)
[HBuilder] 17:00:17.001 at Promise (/Users/carol11/eclipse-workspace/bbccangqiong1/mobile/nodemodules/@dcloudio_vue-cli-plugin-uni-optimize@2.0.0-25120200103006@@dcloudio/vue-cli-plugin-uni-optimize/packages/webpack-optimize-plugin/index.js:18:11)
[HBuilder] 17:00:17.018 at new Promise (<anonymous>)
[HBuilder] 17:00:17.035 at compiler.hooks.beforeCompile.tapPromise.compilation (/Users/carol11/eclipse-workspace/bbccangqiong1/mobile/nodemodules/@dcloudio_vue-cli-plugin-uni-optimize@2.0.0-25120200103006@@dcloudio/vue-cli-plugin-uni-optimize/packages/webpack-optimize-plugin/index.js:16:14)
[HBuilder] 17:00:17.051 at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/carol11/eclipse-workspace/bbccangqiong1/mobile/node_modules/_tapable@1.1.3@tapable/lib/HookCodeFactory.js:33:10), <anonymous>:8:17)
[HBuilder] 17:00:17.068 at AsyncSeriesHook.lazyCompileHook (/Users/carol11/eclipse-workspace/bbccangqiong1/mobile/node_modules/_tapable@1.1.3@tapable/lib/Hook.js:154:20)
[HBuilder] 17:00:17.085 at Compiler.compile (/Users/carol11/eclipse-workspace/bbccangqiong1/mobile/node_modules/_webpack@4.44.1@webpack/lib/Compiler.js:662:28)
[HBuilder] 17:00:17.102 at compiler.hooks.watchRun.callAsync.err (/Users/carol11/eclipse-workspace/bbccangqiong1/mobile/node_modules/_webpack@4.44.1@webpack/lib/Watching.js:77:18)
[HBuilder] 17:00:17.119 at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/carol11/eclipse-workspace/bbccangqiong1/mobile/node_modules/_tapable@1.1.3@tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
[HBuilder] 17:00:17.132 at AsyncSeriesHook.lazyCompileHook (/Users/carol11/eclipse-workspace/bbccangqiong1/mobile/node_modules/_tapable@1.1.3@tapable/lib/Hook.js:154:20)
[HBuilder] 17:00:17.132 at Watching._go (/Users/carol11/eclipse-workspace/bbccangqiong1/mobile/node_modules/_webpack@4.44.1@webpack/lib/Watching.js:41:32)
[HBuilder] 17:00:17.151 at Watching.compiler.readRecords.err (/Users/carol11/eclipse-workspace/bbccangqiong1/mobile/node_modules/_webpack@4.44.1@webpack/lib/Watching.js:33:9)
[HBuilder] 17:00:17.152 at Compiler.readRecords (/Users/carol11/eclipse-workspace/bbccangqiong1/mobile/node_modules/_webpack@4.44.1@webpack/lib/Compiler.js:529:11)
[HBuilder] 17:00:17.168 at new Watching (/Users/carol11/eclipse-workspace/bbccangqiong1/mobile/node_modules/_webpack@4.44.1@webpack/lib/Watching.js:30:17)
[HBuilder] 17:00:17.169 at Compiler.watch (/Users/carol11/eclipse-workspace/bbccangqiong1/mobile/node_modules/_webpack@4.44.1@webpack/lib/Compiler.js:244:10)
[HBuilder] 17:00:17.192 项目 'mobile' 发布h5失败.
李白丨
漂亮
2024-01-04 19:23