pub enum NpmError {
Registry(String),
NoMatch {
name: String,
range: String,
},
Integrity(String),
Refused(String),
Io {
path: PathBuf,
source: Error,
},
}Expand description
Why an npm operation failed. Its message escapes unprintable characters, which names and URLs from a lock or a registry may hold.
Variants§
Registry(String)
The registry could not be reached or answered with an error.
NoMatch
No published version matches.
Integrity(String)
The tarball’s digest differs from the registry’s.
Refused(String)
A package name or folder that would put files outside node_modules.
Io
A file operation failed.
Trait Implementations§
Source§impl Error for NpmError
impl Error for NpmError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<NpmError> for ChestError
impl From<NpmError> for ChestError
Auto Trait Implementations§
impl !RefUnwindSafe for NpmError
impl !UnwindSafe for NpmError
impl Forget for NpmError
impl Freeze for NpmError
impl Send for NpmError
impl Sync for NpmError
impl Unpin for NpmError
impl UnsafeUnpin for NpmError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more