WARNING No locally installed turbo
found. Using version: 2.2.3. #NPM
#9385
-
SummaryI’ve created a Turbo Monorepo using npm and then added Docker following the provided example. However, when building the project, I receive the warning message: Here is the complete log and Dockerfile for reference:
Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The warning is to inform you when the version of In this case, If you'd prefer to suppress the warning, you can use the Note: I just went and looked around package manager documentation and it doesn't appear npm or pnpm have a way to install one specific dependency, which really is what you would need here. |
Beta Was this translation helpful? Give feedback.
The warning is to inform you when the version of
turbo
meant for your repository hasn't been installed yet by your package manager. This is important to know in cases where a mismatch in global vs. local versions could cause errors. For instance, if you install a different major version.In this case,
turbo prune
is being ran from the global scope (--global
), so it's not coming from thenode_modules
of your repository, so the warning is trying to tell you ahead of time of the possibility of a problematic mismatch in the future.If you'd prefer to suppress the warning, you can use the
TURBO_GLOBAL_WARNING_DISABLED
System Environment Variable can suppress the warning if you want to accept t…