> For the complete documentation index, see [llms.txt](https://docs.meterian.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meterian.io/the-client/command-line-parameters/specific-controls/npm-yarn-specific-controls.md).

# Npm/Yarn specific controls

This is a list of system flags that can be used to request specific NPM and YARN behaviours. Please refer to the parent section to learn how to specify them to the client.

`npm.folders.excluded=samples,tests`

During the scan of a NodeJS project, the client will usually look in all folders of the projects in order to detect any manifest file. if you want to avoid the client to look into specific subfolder you can use this flag. By default, the client won't look into folders named "lib", "examples", "samples" and of course "node\_modules".

`npm.root.only=true`

When false, directs the client to look only into the root folder and not in any subfolder for manifest files. By default the scanner will look also in subfolders.

`npm.extra.parameters=--npm_config_allow_same_version`

This will allow to directly specify raw parameters that will be included in every npm command issued by the client.

`npm.ls.enabled=true`

This controls the usage of the "npm ls" command to obtain the list of dependencies and solely relies on the content of the package.lock. When set to `false`, you should make sure your lock files are present and up to date.

`nodejs.workspaces.enabled=false`

When false the client is instructed to avoid processing the current project folder as the top level folder for either [pnpm workspaces](https://pnpm.io/pnpm-workspace_yaml), [yarn workspaces](https://classic.yarnpkg.com/lang/en/docs/workspaces/) or [npm workspaces](https://docs.npmjs.com/cli/v7/using-npm/workspaces).
