10 months ago
npm error code EUNSUPPORTEDPROTOCOL
npm error Unsupported URL Type "workspace:": workspace:*45 Replies
10 months ago
try using pnpm as a package manager instead (or bun or yarn or whatever, ive never gotten npm to work with workspaces)
10 months ago
are you using Dockerfile?
if not can you send me your build logs?
I'm not using a dockerfile… or there is no dockerfile within my monorepo
10 months ago
it's using npm <:Thinking:1360710341239242762>
10 months ago
perfect, then can you show me the top-most part of your build logs?
10 months ago
do you have bun specified as your package manager in your package.json?
{
"name": "river",
"private": true,
"scripts": {
"start": "(cd apps/expo && bun start) & (cd apps/backend && bun start:dev)",
"start:beam": "cd apps/beam && bun start",
"lint": "biome check . --write",
"format": "biome format . --write",
"typecheck": "cd apps/expo && bun typecheck",
"prepare": "husky"
},
"workspaces": ["apps/*", "packages/*"],
"devDependencies": {
"husky": "^9.1.7"
}
}10 months ago
yea its weird that it's using npm anyway
10 months ago
can you try setting your package manager to bun in package.json? maybe that'll make it use bun
10 months ago
did you alter the root directory for your service in your service settings?
10 months ago
oh okay yea then that's your problem
10 months ago
that's only done on isolated monorepos
10 months ago
for shared monorepos you deploy the entire repo but alter the start command to point to start whatever app needs to start within the service so that each service runs a different app in the monorepo
10 months ago
an isolated monorepo is a monorepo where each repo is completely isolated from the others, meaning no shared folder or packages or anything, each one runs indepedently
10 months ago
a shared monorepo is what you have, might have a shared directory, it shares dependencies and such
10 months ago
yea
10 months ago
I am not sure
10 months ago
it's probably fine though
9 months ago
i can imagine
9 months ago
all good then? clear to mark as solved?
9 months ago
sure what's up?
9 months ago
Feel free to open up another thread if you still want to ask your question
9 months ago
!s
Status changed to Solved dev • 10 months ago



