SIP.js
SIP.js copied to clipboard
npm installation of 0.21.2 installs 0.21.1
Describe the bug https://registry.npmjs.org/sip.js/-/sip.js-0.21.2.tgz, once extracted contains version.js which indicates that the version is 0.21.1 and not 0.21.2.
To Reproduce (if possible)
docker run --rm -it node:18 bash
Unable to find image 'node:18' locally
18: Pulling from library/node
c3e6129b48b6: Pull complete
ef0470f9572d: Pull complete
99dfcef0545e: Pull complete
940d63caabf4: Pull complete
0f50438bf9d4: Pull complete
165e17284706: Pull complete
5b6885c1747f: Pull complete
a5a17ba4203b: Pull complete
9b1dcc641ff4: Pull complete
Digest: sha256:e9ad817b0d42b4d177a4bef8a0aff97c352468a008c3fdb2b4a82533425480df
Status: Downloaded newer image for node:18
root@83af7c6f8af9:/# npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See `npm help init` for definitive documentation on these fields
and exactly what they do.
Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit.
package name: example
version: (1.0.0)
description:
entry point: (index.js)
test command:
git repository:
keywords:
author:
license: (ISC)
About to write to /package.json:
{
"name": "example",
"version": "1.0.0",
"description": "",
"main": "index.js",
"directories": {
"lib": "lib"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
Is this OK? (yes)
npm notice
npm notice New major version of npm available! 8.19.2 -> 9.2.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.2.0
npm notice Run npm install -g [email protected] to update!
npm notice
root@83af7c6f8af9:/# ls
bin boot dev etc home lib media mnt opt package.json proc root run sbin srv sys tmp usr var
root@83af7c6f8af9:/# ls -al
total 76
drwxr-xr-x 1 root root 4096 Dec 23 22:46 .
drwxr-xr-x 1 root root 4096 Dec 23 22:46 ..
-rwxr-xr-x 1 root root 0 Dec 23 22:45 .dockerenv
drwxr-xr-x 1 root root 4096 Dec 21 02:06 bin
drwxr-xr-x 2 root root 4096 Dec 9 19:15 boot
drwxr-xr-x 5 root root 360 Dec 23 22:45 dev
drwxr-xr-x 1 root root 4096 Dec 23 22:45 etc
drwxr-xr-x 1 root root 4096 Dec 21 13:52 home
drwxr-xr-x 1 root root 4096 Dec 21 02:07 lib
drwxr-xr-x 2 root root 4096 Dec 19 00:00 media
drwxr-xr-x 2 root root 4096 Dec 19 00:00 mnt
drwxr-xr-x 1 root root 4096 Dec 21 13:54 opt
-rw-r--r-- 1 root root 244 Dec 23 22:46 package.json
dr-xr-xr-x 203 root root 0 Dec 23 22:45 proc
drwx------ 1 root root 4096 Dec 21 13:54 root
drwxr-xr-x 3 root root 4096 Dec 19 00:00 run
drwxr-xr-x 1 root root 4096 Dec 21 02:06 sbin
drwxr-xr-x 2 root root 4096 Dec 19 00:00 srv
dr-xr-xr-x 13 root root 0 Dec 23 22:45 sys
drwxrwxrwt 1 root root 4096 Dec 21 13:54 tmp
drwxr-xr-x 1 root root 4096 Dec 19 00:00 usr
drwxr-xr-x 1 root root 4096 Dec 19 00:00 var
root@83af7c6f8af9:/# npm i sip.js
added 1 package, and audited 2 packages in 558ms
found 0 vulnerabilities
root@83af7c6f8af9:/# ls
bin boot dev etc home lib media mnt node_modules opt package-lock.json package.json proc root run sbin srv sys tmp usr var
root@83af7c6f8af9:/# cat package.json
{
"name": "example",
"version": "1.0.0",
"description": "",
"main": "index.js",
"directories": {
"lib": "lib"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"sip.js": "^0.21.2"
}
}
root@83af7c6f8af9:/# npm ^C
root@83af7c6f8af9:/# cd node_modules/
root@83af7c6f8af9:/node_modules# ls
sip.js
root@83af7c6f8af9:/node_modules# cd ^C
root@83af7c6f8af9:/node_modules# cat sip.js^C
root@83af7c6f8af9:/node_modules# cd sip.js/
root@83af7c6f8af9:/node_modules/sip.js# ls
LICENSE.md README.md lib package.json
root@83af7c6f8af9:/node_modules/sip.js# cat ^C
root@83af7c6f8af9:/node_modules/sip.js# cd lib/
root@83af7c6f8af9:/node_modules/sip.js/lib# ls
api core grammar index.d.ts index.js platform version.d.ts version.js
root@83af7c6f8af9:/node_modules/sip.js/lib# cat version.js
export const LIBRARY_VERSION = "0.21.1";
Expected behavior 0.21.2 should be installed.
Observed behavior 0.21.1 is installed but package.json indicates 0.21.2 is installed.
Environment Information Reproduced using docker.
Same problem without docker!
Same problem