npm-install-checks

WebJar for npm-install-checks

Лицензия

Лицензия

BSD 2-Clause
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

npm-install-checks
Последняя версия

Последняя версия

4.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

npm-install-checks
WebJar for npm-install-checks
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/npm/npm-install-checks

Скачать npm-install-checks

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/npm-install-checks/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>npm-install-checks</artifactId>
    <version>4.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/npm-install-checks/
implementation 'org.webjars.npm:npm-install-checks:4.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/npm-install-checks/
implementation ("org.webjars.npm:npm-install-checks:4.0.0")
'org.webjars.npm:npm-install-checks:jar:4.0.0'
<dependency org="org.webjars.npm" name="npm-install-checks" rev="4.0.0">
  <artifact name="npm-install-checks" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='npm-install-checks', version='4.0.0')
)
libraryDependencies += "org.webjars.npm" % "npm-install-checks" % "4.0.0"
[org.webjars.npm/npm-install-checks "4.0.0"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : semver jar [7.1.1,8)

Модули Проекта

Данный проект не имеет модулей.

npm-install-checks

Check the engines and platform fields in package.json

API

Both functions will throw an error if the check fails, or return undefined if everything is ok.

Errors have a required and current fields.

.checkEngine(pkg, npmVer, nodeVer, force = false)

Check if node/npm version is supported by the package. If it isn't supported, an error is thrown.

force argument will override the node version check, but not the npm version check, as this typically would indicate that the current version of npm is unable to install the package properly for some reason.

Error code: 'EBADENGINE'

.checkPlatform(pkg, force)

Check if OS/Arch is supported by the package.

Error code: 'EBADPLATFORM'

org.webjars.npm

npm

node package manager

Версии библиотеки

Версия
4.0.0
3.0.2
3.0.0