diff --git a/package_linter.py b/package_linter.py index 96da3dd..3930567 100755 --- a/package_linter.py +++ b/package_linter.py @@ -2756,6 +2756,11 @@ class Script(TestSuite): "The --keep option of ynh_setup_source expects relative paths, not absolute path ... you do not need to prefix everything with '$final_path' in the --keep arg ..." ) + @test() + def ynh_npm_global(self): + if self.containsregex(r"ynh_npm.*install.*global"): + yield Warning("Please don't install stuff on global scope with npm install --global é_è") + @test() def ynh_add_fpm_config_deprecated_package_option(self): if self.containsregex(r"ynh_add_fpm_config .*package=.*"):