Questions tagged [npm-version]
37 questions
91
votes
12 answers
Error: Can't resolve 'core-js/es7/reflect' in '\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models
After updating to Angular 7.3.6, I get the following error on ng serve:
ERROR in
./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/jit-polyfills.js
Module not found: Error: Can't resolve 'core-js/es7/reflect' in
…

Bronsii
- 1,023
- 1
- 7
- 10
24
votes
4 answers
How to generate NPM release candidate version
Say I want to generate a pre-release NPM version.
Originally I have this:
"version": "0.0.1"
I tried:
npm version prepatch
npm version prepatch
npm version preminor
npm version preminor
that gave me…

Alexander Mills
- 90,741
- 139
- 482
- 817
15
votes
3 answers
How to increase a version of an npm package using Azure Devops pipeline
The pipeline is triggered by new commits to a master branch and publishes the package
Currently, the version is set manually and I'de be happy to have it set automatically.
What I thought at first was adding the following tasks to the…

SagiLow
- 5,721
- 9
- 60
- 115
11
votes
1 answer
How does npm version work?
I'm a little hazy on how npm version works. The documentation says:
If run in a git repo, it will also create a version commit and tag.
Does that mean I don't have to run git commit or git tag or does it just take the place of git tag -a…

jwerre
- 9,179
- 9
- 60
- 69
10
votes
6 answers
npm package seems to be corrupted
I am getting these warnings and then errors at the end. What is the fix?
npm WARN deprecated core-js@2.6.10: core-js@<3.0 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the…

Muzaffar Mahmood
- 1,688
- 2
- 17
- 20
10
votes
3 answers
`npm version patch` command failing
I am trying to patch a version of my Angular project using the command -
npm version patch but getting an error -
$ npm version patch
npm ERR! npm version [ | major | minor | patch | premajor | preminor | prepatch |…

Pratik
- 695
- 2
- 11
- 29
2
votes
3 answers
Rollback to previous version of NPM
I want to use an earlier version of node v14.7.0 and its respective npm. When I do that I still get the latest version of npm and not the earlier version.
How to get the earlier version?

Shahzan Sadick
- 196
- 5
2
votes
0 answers
How to apply folder hierarchy with npm publish --registry?
I am not sure where to change in command line for npm publish or package.json file for npm. I am trying to structure the Nexus repository using the version. I have written a gitlab ci/cd pipeline. The result that I want in Nexus dashboard is
-…

Smile Kisan
- 191
- 4
- 19
2
votes
0 answers
NPM Version Not Committing Workspace package.json
When trying to set the version of all work-spaces I have found that only the root workspace change is committed. Steps to reproduce using Angular CLI:
ng new test-workspace --create-application false
cd test-workspace
ng generate application…

D-Dᴙum
- 7,689
- 8
- 58
- 97
2
votes
1 answer
How to rollback "npm version minor" - updated minor instead of "patch"
I made a silly mistake, I wanted to update the version of my npm library by X.X.1 - basically I should have used npm version patch but because I am stupid I ran npm version minor. So my library version is 0.3.0 instead of 0.2.1. How do I undo the…

NewToAngular
- 975
- 2
- 13
- 23
2
votes
0 answers
VSTS Build - npm version minor command does not commit changes to GitHub
I'm trying to build the CI/CD Pipeline for my project in VSTS. The tests, build and deployment flow is all fine and working as expected.
But I couldn't manage to commit the auto increased version number in the package.json to the github repo.
My…

TTCG
- 8,805
- 31
- 93
- 141
1
vote
0 answers
Cannot get NPM_PACKAGE_VERSION value
Having config in .env file like:
REACT_APP_VERSION=$npm_package_version
i still get undefined in variable process.env.REACT_APP_VERSION.
Also variable process.env.npm_package_version is undefined.
I could not find anything useful so far.
I also…

Michał Turczyn
- 32,028
- 14
- 47
- 69
1
vote
1 answer
Angular - Wrong package versions?
I've an angular app.
In the package.json I defined for all angular packages the version 12.2.9 like:
"@angular/animations": "^12.2.9",
"@angular/cdk": "^12.2.9",
"@angular/common": "^12.2.9",
"@angular/compiler": "^12.2.9",
"@angular/core":…

Konrad
- 4,329
- 10
- 54
- 88
1
vote
1 answer
Limit Jenkins Git polling to one branch
Out current Jenkins Pipeline job is setup to build a branch checked out from Git. To do the checkout we use the SCM plugin:
triggers {
pollSCM scmpoll_spec: ''
}
checkout(
poll: true,
scm: [$class: 'GitSCM',
branches:…

Chris Lake
- 86
- 8
1
vote
1 answer
Set version in package.json to reference a version file
Is there a way to use npm-version and not commit, to only change the version but leave it uncommitted?
I know that I can use npm version {my-version}, but is there an argument flag I can add so that the change isn't committed?

ineedtoknow
- 1,283
- 5
- 28
- 46