1***@qq.com
1***@qq.com
  • 发布:2023-06-12 10:20
  • 更新:2023-06-12 10:20
  • 阅读:317

支付宝开发工具自带的mPaaS uniapp多端示例运行不起来,求助

分类:uni-app

如题,编译日志如下,

deprecateTiny true  
MiniProgram Compile Extension activated.  
none dev server、start  
Using workspace d:\playspace\mPassMinApp\mPaaS-uniapp-tutorial  
Execute user script beforeCompile  
Starting dev server...  

Dev Server is listening on http://127.0.0.1:8582  

[build] version: 0.76.5  

Error: ENOENT: no such file or directory, open 'd:\playspace\mPassMinApp\mPaaS-uniapp-tutorial\dist\alipay\app.json'  
    at Object.openSync (fs.js:462:3)  
    at Object.fs.openSync (pkg/prelude/bootstrap.js:503:32)  
    at Object.readFileSync (fs.js:364:35)  
    at Object.fs.readFileSync (pkg/prelude/bootstrap.js:711:36)  
    at Object.initPersistedProperty (C:\snapshot\cube\node_modules\@ali\antcube-build\lib\build\option\option.js:1:33746)  
    at new <anonymous> (C:\snapshot\cube\node_modules\@ali\antcube-build\lib\build\option\option.js:1:14697)  
    at C:\snapshot\cube\node_modules\@ali\antcube-build\lib\build\option\index.js:1:410  
    at createOptionsFromCommand (C:\snapshot\cube\node_modules\@ali\antcube-build\lib\bootstrap\builder.js:1:2710)  
    at c.<anonymous> (C:\snapshot\cube\node_modules\@ali\antcube-build\lib\bootstrap\builder.js:1:997)  
    at Generator.next (<anonymous>) {  
  errno: -4058,  
  syscall: 'open',  
  code: 'ENOENT',  
  path: 'd:\\playspace\\mPassMinApp\\mPaaS-uniapp-tutorial\\dist\\alipay\\app.json'  
}  

> mpaas-uniapp-tutorial@0.1.0 dev:mp-alipay  
> cross-env NODE_ENV=development UNI_PLATFORM=mp-alipay UNI_OUTPUT_DIR=dist/alipay BUILD_ENV=ali-ide vue-cli-service uni-build --watch  

'cross-env' �����ڲ����ⲿ���Ҳ���ǿ����еij���  
���������ļ���  

Script `beforeCompile` exited with code 1  
Execute user script beforeCompile  
Starting dev server...  

Dev Server is listening on http://127.0.0.1:8582  

stop script error beforeCompile with code 128   
 undefined  
[build] version: 0.76.5  

Error: ENOENT: no such file or directory, open 'd:\playspace\mPassMinApp\mPaaS-uniapp-tutorial\dist\alipay\app.json'  
    at Object.openSync (fs.js:462:3)  
    at Object.fs.openSync (pkg/prelude/bootstrap.js:503:32)  
    at Object.readFileSync (fs.js:364:35)  
    at Object.fs.readFileSync (pkg/prelude/bootstrap.js:711:36)  
    at Object.initPersistedProperty (C:\snapshot\cube\node_modules\@ali\antcube-build\lib\build\option\option.js:1:33746)  
    at new <anonymous> (C:\snapshot\cube\node_modules\@ali\antcube-build\lib\build\option\option.js:1:14697)  
    at C:\snapshot\cube\node_modules\@ali\antcube-build\lib\build\option\index.js:1:410  
    at createOptionsFromCommand (C:\snapshot\cube\node_modules\@ali\antcube-build\lib\bootstrap\builder.js:1:2710)  
    at c.<anonymous> (C:\snapshot\cube\node_modules\@ali\antcube-build\lib\bootstrap\builder.js:1:997)  
    at Generator.next (<anonymous>) {  
  errno: -4058,  
  syscall: 'open',  
  code: 'ENOENT',  
  path: 'd:\\playspace\\mPassMinApp\\mPaaS-uniapp-tutorial\\dist\\alipay\\app.json'  
}  

> mpaas-uniapp-tutorial@0.1.0 dev:mp-alipay  
> cross-env NODE_ENV=development UNI_PLATFORM=mp-alipay UNI_OUTPUT_DIR=dist/alipay BUILD_ENV=ali-ide vue-cli-service uni-build --watch  

请注意运行模式下,因日志输出、sourcemap以及未压缩源码等原因,性能和包体积,均不及发行模式。若要正式发布,请点击发行菜单或使用cli发布命令进行发布  

小程序各家浏览器内核及自定义组件实现机制存在差异,可能存在样式布局兼容问题,参考:https://uniapp.dcloud.io/matter?id=mp  

Browserslist: caniuse-lite is outdated. Please run:  
npx browserslist@latest --update-db  

发现 uni-app cli 新版本 2.0.2-3080420230530001. 请执行 npm update 升级  

Script `beforeCompile` exited with code 0  
2023-06-12 10:20 负责人:无 分享
已邀请:

要回复问题请先登录注册