c***@weinde.cn
c***@weinde.cn
  • 发布:2019-04-21 20:05
  • 更新:2019-07-16 16:26
  • 阅读:3697

uni-app 项目执行:npm init -y后再执行了npm install @dcloudio/uni-ui,现在就报错了

分类:uni-app

碰到问题:
fs.js:646
19:57:01.004 return binding.open(pathModule.makeLong(path), stringToFlags(flags), mode);
19:57:01.021 ^
19:57:01.040 Error: ENOENT: no such file or directory, open '/Users/alex/Documents/HBuilderProjects/myHealth/unpackage/dist/dev/.tmp/app-plus/node-modules/
@dcloudio_uni-ui@0.0.7@@dcloudio/uni-ui/lib/uni-badge/uni-badge.js'
19:57:01.055 at Object.fs.openSync (fs.js:646:18)
19:57:01.096 at Object.fs.readFileSync (fs.js:551:33)
19:57:01.097 at /Applications/HBuilderX.app/Contents/HBuilderX/plugins/weapp-tools/lib/index.js:1:9238
19:57:01.104 at a.component.map.e (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/weapp-tools/lib/index.js:1:10242)
19:57:01.122 at Array.map (<anonymous>)
19:57:01.123 at /Applications/HBuilderX.app/Contents/HBuilderX/plugins/weapp-tools/lib/index.js:1:10193
19:57:01.139 at ChildProcess.c.on.e (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/weapp-tools/lib/index.js:1:7330)
19:57:01.139 at emitTwo (events.js:126:13)
19:57:01.154 at ChildProcess.emit (events.js:214:7)
19:57:01.154 at maybeClose (internal/child_process.js:925:16)
19:57:01.174 at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

2019-04-21 20:05 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com

fs.js:646
16:21:44.716 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
16:21:44.716 ^
16:21:44.716 Error: EPERM: operation not permitted, open 'D:\WorkSpace\Traffic.Cloud.NApp\unpackage\dist\dev\app-plus\static\emptyCart.jpg'
16:21:44.732 at Object.fs.openSync (fs.js:646:18)
16:21:44.732 at copyFileSync (D:\新建文件夹\HBuilderX\plugins\weapp-tools\node_modules\fs-extra\lib\copy-sync\copy-file-sync.js:24:16)
16:21:44.748 at Object.copySync (D:\新建文件夹\HBuilderX\plugins\weapp-tools\node_modules\fs-extra\lib\copy-sync\copy-sync.js:40:7)
16:21:44.748 at glob.sync.forEach.t (D:\新建文件夹\HBuilderX\plugins\weapp-tools\lib\index.js:1:7179)
16:21:44.763 at Array.forEach (<anonymous>)
16:21:44.763 at copyResource (D:\新建文件夹\HBuilderX\plugins\weapp-tools\lib\index.js:1:7066)
16:21:44.763 at D:\新建文件夹\HBuilderX\plugins\weapp-tools\lib\index.js:1:15427
16:21:44.779 at D:\新建文件夹\HBuilderX\plugins\weapp-tools\node_modules\async\dist\async.js:3874:9
16:21:44.779 at D:\新建文件夹\HBuilderX\plugins\weapp-tools\node_modules\async\dist\async.js:473:16
16:21:44.779 at iteratorCallback (D:\新建文件夹\HBuilderX\plugins\weapp-tools\node_modules\async\dist\async.js:1050:13)
16:21:44.795 at D:\新建文件夹\HBuilderX\plugins\weapp-tools\node_modules\async\dist\async.js:958:16
16:21:44.795 at D:\新建文件夹\HBuilderX\plugins\weapp-tools\node_modules\async\dist\async.js:3871:13
16:21:44.795 at D:\新建文件夹\HBuilderX\plugins\weapp-tools\lib\index.js:1:14877
16:21:44.810 at D:\新建文件夹\HBuilderX\plugins\weapp-tools\lib\index.js:1:13456
16:21:44.810 at D:\新建文件夹\HBuilderX\plugins\weapp-tools\node_modules\async\dist\async.js:3874:9
16:21:44.826 at D:\新建文件夹\HBuilderX\plugins\weapp-tools\node_modules\async\dist\async.js:473:16

该问题目前已经被锁定, 无法添加新回复