RocketChat / RocketChat/Rocket.Chat

Rocketchat error when installing dependencies

Open
#25,720 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Hi I am using rocketchat source code and when I go to apps/meteor folder to install dependencies with meteor npm install command, this error shows up:

> meteor npm install
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "workspace:": workspace:^

I did the yarn command in project root directory before running this command. I check the package,json file and I notice that the problem might be for this packages:

		"@rocket.chat/eslint-config": "workspace:^",
		"@rocket.chat/livechat": "workspace:^",

What is the solution?

Server Setup Information:
  • Version of Rocket.Chat Server: 4.8
  • Operating System: linux ubuntu 22.04
  • Deployment Method: source code
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: 14.8.3
  • MongoDB Version: 5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the repository root setup and apps/meteor/package.json, then reproduce the failure using yarn at the root followed by meteor npm install in apps/meteor. Done means the dependency installation completes without the unsupported workspace: protocol error.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, node.js, typescript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.