Questions tagged [npm-version]

37 questions
0
votes
1 answer

Npm version bringing back double string key:value pair

Running npm version brings back a really weird key-value pair. I don't even know what to search to find out how to remove this. 'livelocation-master': '1.0.0' Background: I tried using react-native when I was first playing around with code, I…
Ty Sellers
  • 173
  • 3
  • 11
0
votes
1 answer

What will happen if the "package.json" version is not followed in sequence and the same version is repeated in the history with different code-base?

What will happen if the "package.json" version is not followed in sequence and the same version is repeated in the history with different code-base? Let us suppose: Project-XYZ package.json version 1.0.0 is published with the changes in the files…
kavigun
  • 2,219
  • 2
  • 14
  • 33
0
votes
1 answer

When, if ever, will NPM restore dependencies published after the dependent package?

Assume all references in package.json are ^1.0.0 and I only bump the patch version. I have A dependent on B dependent on C: A > B > C. I restore A and notice that the version of C I get is published after B. I expected the latest version of C that…
Christopher King
  • 1,034
  • 1
  • 8
  • 21
0
votes
2 answers

prefix -g' is not recognized as an internal or external command, operable program or batch file

I have installed NODEJS succesfully. But when I check for the versions, node version is showing correctly.But when I check for npm version,I get the following error along with the version. 'CALL "C:\Program Files\nodejs\\node.exe" "C:\Program…
Sai Raman Kilambi
  • 878
  • 2
  • 12
  • 29
0
votes
1 answer

NPM: How to get bumped version in my CLI command?

Let's say i have a library and when i compile it with webpack i also add a banner such as this one: // LibraryName vX.X where vX.X is its version. I want to compile it with npm preversion script. As here: "preversion": "gulp build --version…
-1
votes
1 answer

Angular library - export package.json version

I created an NX workspace containing multiple libraries and a single showcase-application that's being uploaded to the webserver. I would like to show the library version on the angular application. At the moment I'm doing it like this Export the…
Pieterjan
  • 2,738
  • 4
  • 28
  • 55
-3
votes
3 answers

I just installed nodejs in my pc , and did npm -v getting error

>npm -v node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js' at Function.Module._resolveFilename…
1 2
3