Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0485a458
Commit
0485a458
authored
Oct 06, 2020
by
Michael Lodge-Paolini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added additional NPM/Yarn troubleshooting technique
parent
1fc01f79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
doc/user/packages/npm_registry/index.md
doc/user/packages/npm_registry/index.md
+7
-0
No files found.
doc/user/packages/npm_registry/index.md
View file @
0485a458
...
...
@@ -356,6 +356,13 @@ with your personal access token or deploy token):
//gitlab.com/api/v4/projects/:_authToken=<your_token>
```
You can also use
`yarn config`
instead of
`npm config`
when setting your auth-token dynamically:
```
shell
yarn config
set
'//gitlab.com/api/v4/projects/<your_project_id>/packages/npm/:_authToken'
"<your_token>"
yarn config
set
'//gitlab.com/api/v4/packages/npm/:_authToken'
"<your_token>"
```
### `npm publish` targets default NPM registry (`registry.npmjs.org`)
Ensure that your package scope is set consistently in your
`package.json`
and
`.npmrc`
files.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment