Skip to content

check-current-version.md: npm version-check command is wrong (en dash + wrong command) #34

Description

@lyzhang0113

Found while reviewing docs in PR #30, not fixed there since it touches code samples in two separate files with the same content.

Files:

  • barcode-reader/general/check-current-version.md, around line 17
  • barcode-reader/web/debug/check-current-version.md, around line 30
npm –v dynamsoft-javascript-barcode

Two problems:

  1. That's an en dash (, U+2013) before v, not a hyphen — compare to the real hyphens in dynamsoft-javascript-barcode on the same line. Will fail if copy-pasted as-is.
  2. Even with a real hyphen, npm -v <pkg> doesn't print a specific package's version — it prints npm's own version. The v10 section of the same file correctly uses npm show dynamsoft-barcode-reader version for this purpose; the v9-era command should probably use the equivalent npm show/npm list form instead.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions