-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[BUG] npm version throws TypeError on 'trim'. #2097
Comments
Can you try on npm v7.0.7? |
Will do! Edit: Takes a couple of more minutes, want to use the same image to be sure it's the same environment :P |
Alright, finally got it up and running with the correct version of npm. Still the same issue though. If you can't reproduce it, let me know and I'll set up a small reproducible case for you! :) |
Easiest way to test it is:
Node is built from source and if you wish to see the build procedure it can be found here: https://github.com/jitesoft/docker-node-base/blob/master/.gitlab-ci.yml#L115 Just let me know if you need any more info or anything else. |
Just updated my windows host npm and tested another package, it gave the same issue. |
I must say that this a huge issue, as I have about 20 packages which are deployed quite often (weekly auto, and more often manually), each of which uses the same CI pipeline, and without the availability of the version command, they are all broken. |
I reproduced locally on Mac with your repo. I noticed the The
https://docs.npmjs.com/cli/v6/configuring-npm/package-json#version |
Ah tyvm @shadowspawn, that will be easy to fix! :) |
Going to handle it over on libnpmversion. Thanks for the report! npm/libnpmversion#4 |
Current Behavior:
When executing
npm version {version}
or evennpm version from-git
in my CI pipeline I get the following error:Expected Behavior:
The npm package version should be updated to defined version.
Steps To Reproduce:
I use the following docker image (which is built from my ci as well): https://github.com/orgs/jitesoft/packages/container/package/node
The following package is the latest I tried to build: https://github.com/jitesoft/eslint-config
Environment:
OS: Alpine linux
Node: 15.0.1
NPM: 7.0.3
The text was updated successfully, but these errors were encountered: