{"componentChunkName":"component---content-cli-v-8-commands-npm-exec-md","path":"/cli/v8/commands/npm-exec","result":{"pageContext":{"frontmatter":{"title":"npm-exec","section":1,"description":"Run a command from a local or remote npm package","redirect_from":["/cli/exec","/cli/exec.html","/cli/commands/exec","/cli-commands/exec","/cli-commands/exec.html","/cli-commands/npm-exec"],"github_repo":"npm/cli","github_branch":"latest","github_path":"docs/content/commands/npm-exec.md"},"mdxId":"f8e7bee1-8b47-5590-b365-ad8201352ec3","themeOptions":{"plugins":[],"icon":"./src/images/npm-favicon.png","editOnGitHub":true,"showContributors":false,"showSidebarEditLink":false,"repo":{"url":"https://github.com/npm/documentation","defaultBranch":"main"}},"editUrl":"https://github.com/npm/cli/edit/latest/docs/content/commands/npm-exec.md","contributors":[],"tableOfContents":{"items":[{"url":"#synopsis","title":"Synopsis"},{"url":"#description","title":"Description"},{"url":"#npx-vs-npm-exec","title":"npx vs npm exec"},{"url":"#configuration","title":"Configuration","items":[{"url":"#package","title":"package"},{"url":"#call","title":"call"},{"url":"#workspace","title":"workspace"},{"url":"#workspaces","title":"workspaces"},{"url":"#include-workspace-root","title":"include-workspace-root"}]},{"url":"#examples","title":"Examples"},{"url":"#workspaces-support","title":"Workspaces support","items":[{"url":"#filtering-workspaces","title":"Filtering workspaces"}]},{"url":"#compatibility-with-older-npx-versions","title":"Compatibility with Older npx Versions"},{"url":"#a-note-on-caching","title":"A note on caching","items":[{"url":"#prefer-online","title":"prefer-online"},{"url":"#prefer-offline","title":"prefer-offline"},{"url":"#offline","title":"offline"},{"url":"#workspace-1","title":"workspace"},{"url":"#workspaces-1","title":"workspaces"}]},{"url":"#see-also","title":"See Also"}]}}},"staticQueryHashes":["2665939701","2665939701","4163176147","4163176147"]}