Questions tagged [npm-version]

37 questions
1
vote
0 answers

Unable to upgrade to latest version of npm after installing recent Node version

The current version of npm installed in my pc is 4.6.1. I want to upgrade to the latest version or any other version >= 5.2.0. But when try to do so, I am getting these errors (as displayed below). Please suggest me a…
ranmsd
  • 11
  • 2
1
vote
0 answers

Best practice in JavaScript application versioning workflow

I've been a Java dev for most of career. Currently branching out into frontend space with React. I'm unsure what the best practice is around the workflow in versioning my application from a development build to getting promoted to be a prod-ready…
His
  • 5,891
  • 15
  • 61
  • 82
1
vote
1 answer

npm version issue~postversion: cannot run in wd %s %s (wd=%s)

I am trying to use npm version to update package.json script and push the required changes to the github repository. I have followed below link for the same https://docs.npmjs.com/cli/version I gave "postversion": "git push" command in the…
neha
  • 11
  • 3
1
vote
2 answers

Go.CD - Updating git repo in build pipeline triggers another build

I am trying to update my git repo during the GoCD build. That means that because Go sees another change it triggers another build. Is it possible to stop the re-triggering of the build? Background: I am building and publishing npm packages and I…
Jens Elstner
  • 128
  • 1
  • 10
1
vote
0 answers

Executing specific execution id in maven

I am trying to use maven-release-plugin to publish npm packages. For this I am using frontend-maven-plugin. The release itself is working well using, except when the maven-release-plugin is transforming the pom.xml version to the next development…
0
votes
0 answers

Getting command not found in azure pipeline log

I am trying to adding package.json version change script in azure-pipeline.yaml file. A script would change version in package.json and then build/deploy an artifact with new version for more clarity here I am sharing Image. For example, current…
0
votes
0 answers

npm version package-lock.json caching issue in GitHub Actions

My trigger in the GitHub Actions workflow is when we have a new tag, then deploy the tag to the desired environment. So, running npm version prerelease will trigger the workflow. The problem is when I try to use cache I see that the version in…
0
votes
0 answers

npm version patch -f -m "bump the version and commit my changes"

I was hoping that there is a npm version command, which is: bumping the version (patch/minor/major) commits my new code and package.json with a text. pushes the changes to the repo. Like this: npm version patch -f -m "bump the version and commit…
feder
  • 1,849
  • 2
  • 25
  • 43
0
votes
0 answers

Class-Transformer Node module version upgrade causing error in a specific unit test case which was working fine before the upgrade

Node module : class-transformer Version upgraded from 0.1.0 to 0.4.0 Upgraded using command: npm i class-tranformer@0.4.0 Issue: Upon the upgrade of the function I can see that application is running fine and 8983 of 8984 unit test cases are running…
0
votes
0 answers

Increase only build number of a react-native application using react-native-version

I'm trying to incease only the version number by running npm version -b but it doesn't seem to work without using a specific version number / patch / minor/ major. Is there a way to achieve this use case? Thanks in advance!
nivsto
  • 21
  • 3
0
votes
1 answer

npm error Cannot find module './config/core.js'

I'm facing an npm issue while utilizing the npm install and npm -v commands. Below is the error log for the npm -v command when run in Windows Command Prompt: C:\Users\Sameer>npm -v internal/modules/cjs/loader.js:905 throw err; ^ Error: Cannot…
sameer
  • 23
  • 1
  • 4
0
votes
2 answers

Github action npm publish use tag name

I'm migrating our existing Travis tasks to GH actions. For Travis the command below would publish to npm and use the release tag name for the npm version. script: yarn npm-bundle && npm version $TRAVIS_BRANCH --allow-same-version -m "chore -…
Matt Simon
  • 23
  • 5
0
votes
0 answers

Getting error while checking for npm version post installing Node.js in Windows 10

Getting the following error while checking for npm version using Windows PowerShell. Program 'npm.cmd' failed to run: The specified executable is not a valid application for this OS platform.At line:1 char:1 + npm -v + ~~~~~~. At line:1 char:1 + npm…
0
votes
1 answer

Push rejected, failed to compile Node.js app on heroku App

I have added node_modules in .gitignore that's not issue! How to solve this errors because in engines I have specified version of both. Here is Code : { "name": "server", "version": "1.0.0", "description": "", "main": "index.js", …
user11810803
0
votes
0 answers

Add date to release

I'd like to display the date of a release on my website (together with the release version e.g. 0.3.1). Option 1 I would prefer to set the date when I bump the version: npm version patch --> preferebly adds a data value to the package.json Option…
feder
  • 1,849
  • 2
  • 25
  • 43