You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To let npm pull from another source than a registry,
an alternative syntax,
e.g. from a github repository, the github: syntax
can be used instead just specifying the package name and semver range:
However, david will try to find the package by its name field in npm registry
and either propose the last release being there as the most current release
(despite the version in package.json of a particular commit from github),
or will report a 404 from registry as the package hadn't been published there yet.
$ david
devDependencies
┌──────────┬──────────────────────────────────────┬────────┐
│ Name │ Package │ Latest │
├──────────┼──────────────────────────────────────┼────────┤
│ eyeglass │ github:sass-eyeglass/eyeglass#master │ 0.7.1 │
└──────────┴──────────────────────────────────────┴────────┘
npm install --save-dev [email protected]
Unregistered devDependencies
┌─────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Name │ Message │
├─────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ libsass-compass-vertical-rhythm │ Error: Registry returned 404 for GET on https://registry.npmjs.org/libsass-compass-vertical-rhythm │
└─────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
So david should skip the 404 as the github: syntax is used,
and for github references where also a package exists,
david should either check and compare the package.json of the github reference (commit)
or also skip it to avoid confusion.
This would also apply to similar mechanisms like git+[...],
namely all alternative ways instead of referencing normally to a package in a registry.
The text was updated successfully, but these errors were encountered:
strarsis
changed the title
Doesn't support github: syntax
Doesn't support alternative syntaxes (e.g. github:)
Dec 2, 2015
To let npm pull from another source than a registry,
an alternative syntax,
e.g. from a github repository, the github: syntax
can be used instead just specifying the package name and semver range:
However, david will try to find the package by its name field in npm registry
and either propose the last release being there as the most current release
(despite the version in package.json of a particular commit from github),
or will report a 404 from registry as the package hadn't been published there yet.
So david should skip the 404 as the github: syntax is used,
and for github references where also a package exists,
david should either check and compare the package.json of the github reference (commit)
or also skip it to avoid confusion.
This would also apply to similar mechanisms like git+[...],
namely all alternative ways instead of referencing normally to a package in a registry.
The text was updated successfully, but these errors were encountered: