# Pulling NPM artifact provided by Content Selector results in 403 error

**URL:** <https://community.sonatype.com/t/pulling-npm-artifact-provided-by-content-selector-results-in-403-error/8715>\
**Category:** Best Practices\
**Tags:** nexus-repository, npm, content-selector\
**Created:** [May 23, 2022, 5:57pm UTC](https://community.sonatype.com/t/pulling-npm-artifact-provided-by-content-selector-results-in-403-error/8715 "2022-05-23T17:57:04Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![matthew.rabey](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@matthew.rabey](https://community.sonatype.com/u/matthew.rabey)\
**Post date:** [May 23, 2022, 9:34pm UTC](https://community.sonatype.com/t/pulling-npm-artifact-provided-by-content-selector-results-in-403-error/8715/4 "2022-05-23T21:34:15Z")

</div>

Okay, I believe I may have gotten it working. It’s strange that this isn’t synonymous with Maven. Nonetheless, I was able to get it working by modifying the content selector expression from:  
`/|/@companyB/|/@companyB/npm-dep-1/.*`  
to:  
`/|/@companyB/|/@companyB/npm-dep-1.*`

I removed the final `/` in the expression before the catch-all and it was able to download.

---

_[View the full topic](https://community.sonatype.com/t/pulling-npm-artifact-provided-by-content-selector-results-in-403-error/8715)._
