Help with npm install and EUNSUPPORTEDPROTOCOL error

Subject: Help with npm install and EUNSUPPORTEDPROTOCOL error

Hello community,

I’m trying to set up my environment for the openmrs-esm-patient-chart project. I’ve followed the setup guide, but I’m running into a persistent error that I can’t solve.

Problem: When I run npm install --legacy-peer-deps, I get the following error:

npm error code EUNSUPPORTEDPROTOCOL Unsupported URL Type “workspace:”: workspace:*

What I’ve Tried:

  • I have uninstalled and reinstalled Node.js.

  • I have updated Node.js to the latest LTS version.

  • I have updated npm to the latest version.

  • I have closed and reopened my terminal.

My Environment:

  • Node.js version: v22.18.0

  • npm version: 11.5.2

  • Operating System: Windows 11

Could someone please help me figure out what’s causing this error? Any guidance would be greatly appreciated.

Thank you!

We use yarn, not npm. If you run yarn (as noted in the [setup](GitHub - openmrs/openmrs-esm-patient-chart: This repo houses all EMR patient chart components for OpenMRS v3) section, it will install the dependencies.

1 Like

Thank you for the clarification. I will use yarn instead of npm as specified in the setup section.