收藏
回答

cli重建文件监听命令 reset-fileutils 不能使用?一直报错

版本号:Mac Stable 1.05.2107090


报错信息:

wxtester@wxtesterdeMac-mini ~ % /Applications/wechatwebdevtools.app/Contents/MacOS/cli reset-fileutils --project /Users/wxtester/wkb/xcx/build/

✔ IDE server has started, listening on http://127.0.0.1:41622

✖ preparing

[error] Error: {"code":10,"message":"Error: 错误 Error: can not find the project - /Users/wxtester/wkb/xcx/build/ (code 10)"}

    at Object.t.resetFileUtils (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/js/common/cli/index.js:234:28697)

    at processTicksAndRejections (internal/process/task_queues.js:97:5)

    at async /Applications/wechatwebdevtools.app/Contents/Resources/package.nw/js/common/cli/index.js:142:111891


一直报找不到项目,但这个项目的目录是存在的,预览等其它命令可以使用

回答关注问题邀请回答
收藏

1 个回答

  • cover
    cover
    2021-08-05

    这边排查了下,reset fileutils 出现上面的错误是,因为当前没有开启指定项目的窗口,如果没有开启的话,是无法调用 reset fileutils 的。这里我们修改下文档,增加说明下

    这边可以尝试先 
    cli open --project /Users/username/demo
    然后再调用
    cli reset-fileutils --project /Users/username/demo
    
    
    
    2021-08-05
    有用
    回复
登录 后发表内容