WARNING No locally installed turbo found. Using version: 2.0.4.
#8514
Replies: 10 comments 10 replies
-
|
@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.
-
|
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.
-
|
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.
-
|
@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.
-
|
I see this warning when installing Turbo via Nix instead of npm/similar. I was able to silence it by overriding the derivation in my shell, similar to nixpkgs: pkgs.symlinkJoin {
name = "turbo-rewrapped";
paths = [ pkgs.turbo-unwrapped ];
nativeBuildInputs = [ pkgs.makeBinaryWrapper ];
postBuild = ''
wrapProgram "$out/bin/turbo" \
--set TURBO_TELEMETRY_DISABLED 1 \
--set TURBO_NO_UPDATE_NOTIFIER 1 \
--set TURBO_GLOBAL_WARNING_DISABLED 1
'';
} |
Beta Was this translation helpful? Give feedback.
-
|
If anyone is coming here as a result of only having a global installation of Turbo, then if you also install Turbo locally in the repository, the warning goes away. This is documented here: https://turborepo.com/docs/getting-started/installation#repository-installation |
Beta Was this translation helpful? Give feedback.
-
|
In my case this error was caused when running Docker build from a path other than the monorepo root, in CDK. So something like this is wrong (and gives the packageManager error): ecs.ContainerImage.fromAsset(path.resolve('../../apps/foo'), { // the CDK code lives in a directory like `./infra/bar`
file: 'Dockerfile',
...
} but this is correct (or, works): ecs.ContainerImage.fromAsset(path.resolve('../../'), {
file: 'apps/foo/Dockerfile',
...
} |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
turbofound. 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
packageManagerset in my root package.json, just not in a nested package.json. Do I have to setpackageManagerin all child workspaces?Example
No response
Beta Was this translation helpful? Give feedback.
All reactions