Skip to content

[QUESTION] throw new TypeError('Invalid Version: ' + version) #384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JamesJoeLee opened this issue May 20, 2021 · 1 comment
Closed

[QUESTION] throw new TypeError('Invalid Version: ' + version) #384

JamesJoeLee opened this issue May 20, 2021 · 1 comment

Comments

@JamesJoeLee
Copy link

What / Why

An error was reported when npm run build. Error message:

E:\sources\MDIprograms\02 program\WEB\0519\test3\node_modules\semver\semver.js:323
throw new TypeError('Invalid Version: ' + version)
^

TypeError: Invalid Version: 6.14.11
at new SemVer (E:\sources\MDIprograms\02 program\WEB\0519\test3\node_modules\semver\semver.js:323:11)
at Range.test (E:\sources\MDIprograms\02 program\WEB\0519\test3\node_modules\semver\semver.js:1203:15)
at Function.satisfies (E:\sources\MDIprograms\02 program\WEB\0519\test3\node_modules\semver\semver.js:1257:16)
at module.exports (E:\sources\MDIprograms\02 program\WEB\0519\test3\build\check-versions.js:33:17)
at Object. (E:\sources\MDIprograms\02 program\WEB\0519\test3\build\build.js:2:28)

Where

npm run build

Who

  • n/a

References

  • n/a
@lukekarrys
Copy link
Contributor

This is probably caused by #354. You can try deduping your package tree to a single instance of semver. Try using npm ls semver to see where it is in your tree. I'm going to close this and track in #354.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants