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
Trying to create an npm version requirement of ^16.0.0-0 results in a NullPointerException i.e.
Requirement.buildNPM("^16.0.0-0");
gives
java.lang.NullPointerException: null
at com.vdurmont.semver4j.Semver.<init>(Semver.java:26)
at com.vdurmont.semver4j.Requirement.hyphenRequirement(Requirement.java:487)
at com.vdurmont.semver4j.Requirement.evaluateReversePolishNotation(Requirement.java:338)
at com.vdurmont.semver4j.Requirement.buildWithTokenizer(Requirement.java:138)
at com.vdurmont.semver4j.Requirement.buildNPM(Requirement.java:112)
Trying to create an npm version requirement of
^16.0.0-0
results in aNullPointerException
i.e.Requirement.buildNPM("^16.0.0-0");
gives
Whereas this requirement is parseable by
node-semver
(which is what npm uses) https://github.com/npm/node-semver i.e.This requirement can arise from e.g. trying to install
enzyme-adapter-react-16
using npm6.14.13
npm install [email protected]
Then in the
package-lock.json
you'll seeThe text was updated successfully, but these errors were encountered: