SAP/ui5-tooling

UI5 Serve error

pab008-007 opened this issue · 1 comments

Expected Behavior

{UI5 SERVE ,normal}

Current Behavior

{When I finished the various configurations of UI5, UI5 -V also shows the version normally. But UI5 SERVE still reports an error}

Steps to Reproduce the Issue

  1. {When I finished the various configurations of UI5, UI5 -V also shows the version normally. But UI5 SERVE still reports an error}
  2. {Failed to locate package.json for directory D:\Node js\node_global}
  3. {...}

Context

  • UI5 Module Version (output of ui5 --version when using the CLI): unknown
  • Node.js Version: unknown
  • npm Version: unknown
  • OS/Platform: unknown
  • Browser (if relevant): unknown
  • Other information regarding your environment (optional): nothing

Log Output / Stack Trace

{...}

Hi @pab008-007 ,

It seems that you're not running the ui5 serve command from within your app's directory.
Please cd into your app's directory, where package.json is and execute ui5 serve from there.

Cheers