diff --git a/recipes/nodejs/all/test_package/conanfile.py b/recipes/nodejs/all/test_package/conanfile.py index 42e6935fc89c3f..27b55bec7f7a7d 100644 --- a/recipes/nodejs/all/test_package/conanfile.py +++ b/recipes/nodejs/all/test_package/conanfile.py @@ -1,12 +1,13 @@ -import os -from conans import ConanFile, tools +from conan import ConanFile +from conan.tools.build import cross_building class TestPackageConan(ConanFile): settings = "os", "arch" + tool_requires = "nodejs/[*]@" def test(self): - if not tools.cross_building(self): + if not cross_building(self): self.output.info("Node version:") self.run("node --version", run_environment=True)