WARNING No locally installed turbo
found. Using version: 2.0.4.
#8514
Replies: 7 comments 10 replies
-
Strangely, this was cause by changing my pnpm-workspace.yaml from: packages:
- "packages/**" to packages:
- "./packages/**" Issue has been resolved. I've reverted the change to fix. |
Beta Was this translation helpful? Give feedback.
-
Same with the "workspaces" field in package.json (for npm). E.g. {
"name": "example",
"private": true,
"workspaces": [
"./packages/foo",
"./packages/bar",
]
} Automatic package scoping in 2.0.4 does not support these paths. Running a task in Since the paths with leading |
Beta Was this translation helpful? Give feedback.
-
I'm using pnpm version 9.5.0. I'm not sure why this error. Should I give packageManager for every application? |
Beta Was this translation helpful? Give feedback.
-
Have the same-ish issue. I'm trying to upgrade from v1 to v2 and it works perfectly fine locally but for an unknown reason, it fails on CI when running
I'm using Yarn and here's a truncated version of my root {
"name": "xxx",
"private": true,
"scripts": {
"build": "turbo build"
},
"devDependencies": {
// ...
},
"engines": {
"node": ">=20"
},
"packageManager": "yarn@4.1.1",
"workspaces": [
"apps/*",
"packages/*"
],
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
}
} I have a very basic {
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"tasks": {
"build": {
"outputs": ["dist/**"],
"dependsOn": ["^build"]
},
"test": {
"outputs": ["coverage/**"],
"dependsOn": []
},
"lint": {},
"dev": {
"cache": false,
"persistent": true
},
"clean": {
"cache": false
}
}
} |
Beta Was this translation helpful? Give feedback.
-
@sidarth-2000 @3dos @0xNegative I am unable to reproduce this. If someone could post a full reproduction, that would be great. |
Beta Was this translation helpful? Give feedback.
-
@3dos Are you able to generate an It works on my terminal, but not in docker. I'm still looking for a solution. |
Beta Was this translation helpful? Give feedback.
-
If you used the Dockerfile form example repo. Please, make sure to run your build from the root of your repository. The command The docs already mentions that but I wanted to pin that here as other people will soon face the same issue. |
Beta Was this translation helpful? Give feedback.
-
Summary
I have a PNPM monorepo where I have turbo installed in the root workspace and I then use turbo in all other workspaces. This worked fine for turbo v1, but now I'm getting the warning: " WARNING No locally installed
turbo
found. Using version: 2.0.4.".Does turbo repo v2 required/prefer you to install turbo in all child workspaces?
Additional information
Relatedly, I'm getting the error:
but I have
packageManager
set in my root package.json, just not in a nested package.json. Do I have to setpackageManager
in all child workspaces?Example
No response
Beta Was this translation helpful? Give feedback.
All reactions