下载官网Codelab案例,打开预览器报错

Failed to start the service process. Make sure the path specified by nodejs.dir in the local.properties file is correct.

解决方案

  1. 在编辑器设置中找到node安装路径
    在这里插入图片描述
  2. 将" local.properties"文件中的"nodejs.dir"对应的路径指定为你通过DevEco-studio下载的node
    在这里插入图片描述
Logo

社区规范:仅讨论OpenHarmony相关问题。

更多推荐