# 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).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.meterian.io/the-client/command-line-parameters/specific-controls/npm-yarn-specific-controls.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
