npm config delete @sap:registry
@sap/cds-dk
npm
, and when you ask it to install a package for you it will download the package from the registry associated with the specified scope.npm install @sap/cds-dk
npm
would assume and use the default registry at https://npmjs.org.npm
to tell it to use a specific registry for @Sisn-scoped packages, like this:npm config set @sap:registry=https://npm.sap.com
npm config
. Here's an example from my machine right now:▶ npm config list
; cli configs
metrics-registry = "https://registry.npmjs.org/"
scope = ""
user-agent = "npm/6.14.4 node/v12.18.0 darwin x64"
; userconfig /Users/i347491/.npmrc
@qmacro:registry = "https://npm.pkg.github.com"
@sap:registry = "https://npm.sap.com"
depth = 0
; node bin location = /Users/i347491/.nvm/versions/node/v12.18.0/bin/node
; cwd = /Users/i347491
; HOME = /Users/i347491
; "npm config ls -l" to show all defaults.
.npmrc
file in my home directory.npm config set
command at some stage in the past. It's this association that needs to be removed (so that npm
will use the default NPM registry for any @Sisn scoped packages).npm config delete @sap:registry
npm
operations referring to @Sisn scoped packages will use the default https://npmjs.org registry.npm config list
command and check that the @Sisn:registry configuration line has gone.npm info @Sisn/cds-dk
▶ npm info @sap/cds-dk
@sap/cds-dk@1.8.5 | See LICENSE file | deps: 10 | versions: 17
Command line client and development toolkit for the SAP Cloud Application Programming Model
https://cap.cloud.sap/
keywords: cap, cds, cli
bin: cds
dist
.tarball: https://registry.npmjs.org/@sap/cds-dk/-/cds-dk-1.8.5.tgz
.shasum: 37673e772df6670b4a021943ef904919385c1b76
.integrity: sha512-mqNy5hDg8M8YeFhF0gjfDVGxrUhrojcbRqUV6rWMocRm8ZKbifFBd6syG56R49NUaiei9lZfsdTX6acOP3DzNg==
.unpackedSize: 1.0 MB
dependencies:
@sap/cds-foss: ^1.2.0 @sap/edm-converters: ^1.0.30 nodemon: ^2.0.2 xml-js: ^1.6.11
@sap/cds-sidecar-client: ^1.1.3 express: ^4.17.1 passport: ^0.4.1
@sap/cds: 3.34.x mustache: ^4.0.1 sqlite3: 4.1.1
maintainers:
- sap_extncrepos <extncrepos@sap.com>
- sapnaas <Holger.Brox@sap.com>
- sapnaasuser <extncrepos@sap.com>
dist-tags:
latest: 1.8.5
published 2 weeks ago by sap_extncrepos <extncrepos@sap.com>
tarball
URL:https://registry.npmjs.org/@sap/cds-dk/-/cds-dk-1.8.5.tgz
npm
command set is quite flexible, designed to fit how you think.npm config set
command earlier, the config word could have been omitted (i.e. npm set
works too).; "npm config ls -l" to show all defaults.
npm config list
you can use npm config ls
. Likewise, I could have used npm config rm
instead of npm config delete
.depth = 0
npm
that when it's showing me information on packages and their dependencies, don't display any levels of package hierarchy in the output, as I usually just want to see the top level package information.▶ npm list --global
/Users/i347491/.nvm/versions/node/v12.18.0/lib
├── @sap/cds-dk@1.8.5
├── katacoda-cli@0.0.20
├── mbt@1.0.14
└── npm@6.14.4
▶ npm list --global
/Users/i347491/.nvm/versions/node/v12.18.0/lib
├─┬ @sap/cds-dk@1.8.5
│ ├─┬ @sap/cds@3.34.2
│ │ ├─┬ @sap/cds-compiler@1.26.2
│ │ │ ├── antlr4@4.7.1
│ │ │ ├─┬ resolve@1.8.1
│ │ │ │ └── path-parse@1.0.6
│ │ │ └── sax@1.2.4 deduped
│ │ ├── @sap/cds-foss@1.2.0 deduped
│ │ ├── @sap/cds-reflect@2.11.0
│ │ └─┬ @sap/cds-runtime@1.2.2
│ │ ├─┬ @sap-cloud-sdk/core@1.18.1
│ │ │ ├─┬ @sap-cloud-sdk/analytics@1.19.0
│ │ │ │ ├── @sap-cloud-sdk/util@1.19.0 deduped
│ │ │ │ └── axios@0.19.2 deduped
│ │ │ ├─┬ @sap-cloud-sdk/util@1.19.0
│ │ │ │ ├── chalk@3.0.0 deduped
│ │ │ │ ├── rambda@5.1.1
[... and another 2600+ lines! ...]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
6 | |
5 | |
4 | |
4 | |
4 | |
4 | |
3 | |
2 | |
2 |