AlexLoveYing

Results 9 comments of AlexLoveYing

> 需要先在 wean 根目录下 npm link,因为现在还没有发 npm 包 在wean 根目录下 npm link后,无论返回根目录还是wean根目录下,继续执行wean -e app.json -o /dist/。问题仍然存在

> > 问题仍然存在 > > 你是 windows 吗,我感觉像是环境变量没有设置上,我 windows 也这样,要不就,你就 node ./core/cli.js -e ./app.json -o ./dist/ 我是mac,目录结构如下图 ![image](https://user-images.githubusercontent.com/45815440/112259895-0321bd00-8ca4-11eb-97a5-95479342c6ef.png)

> -e ./app.json -o ./dist/ 换成相对路径,另外具体是啥报错呀 就是报zsh: command not found: wean ![image](https://user-images.githubusercontent.com/45815440/112262857-49c5e600-8ca9-11eb-8640-28ffbef7027e.png)

> 我擦这好奇怪啊,放到 package.json 的 scripts 中试试 貌似也不行 ![image](https://user-images.githubusercontent.com/45815440/112263181-d7093a80-8ca9-11eb-8cbf-a61c2c030142.png) ![image](https://user-images.githubusercontent.com/45815440/112263165-cfe22c80-8ca9-11eb-9adb-2343722b294c.png)

您好,我给搞好了。使用命令构建成功。但是dist文件夹下的html使用chorme打开,是空白,是必须使用APP的webview来加载这个html文件才可以吗? ![image](https://user-images.githubusercontent.com/45815440/112265898-38330d00-8cae-11eb-9063-a485a34d87ec.png) ![image](https://user-images.githubusercontent.com/45815440/112265947-51d45480-8cae-11eb-9e68-c5c782a9f46c.png)

才疏学浅,还麻烦看看是哪一步出了问题? 执行命令之前 ![image](https://user-images.githubusercontent.com/45815440/112267480-7cbfa800-8cb0-11eb-8249-0c949bde91a1.png) 执行wean -e ./app.json -o ./dist ![image](https://user-images.githubusercontent.com/45815440/112267544-95c85900-8cb0-11eb-9913-d262f25e1b12.png) 执行后,这俩文件就在dist文件夹外 ![image](https://user-images.githubusercontent.com/45815440/112267530-8f39e180-8cb0-11eb-93f0-73ad457936e9.png)

> 我知道了………………有可能是 mac 的目录问题,emmm 我没有 mac 电脑,没法调试 使用windows,所有文件都正常构建到了dist目录下,但直接运行html文件,页面空白的,控制台报错。 ![image](https://user-images.githubusercontent.com/45815440/112269696-ab8b4d80-8cb3-11eb-9516-dd57d1f96bf5.png)

> 你的命令也不对 -e ./app.json -o ./dist/ 最后有个斜杠!!!! ./dist//////////////////////////////////////// 看到这个斜杠了吗 不加斜杠的也试过了,都跑到dist文件夹外

我有同样的问题,我在本地测试是可以实现流式返回的,但部署到腾讯云函数后调用,则是一次性返回所有结果,有人可以帮忙解决这个问题吗?是云服务器问题?还是代码问题?