Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ans validator errors-out #240

Open
lvignals opened this issue May 19, 2021 · 0 comments
Open

ans validator errors-out #240

lvignals opened this issue May 19, 2021 · 0 comments

Comments

@lvignals
Copy link

using master branch to run
$npm install
results in warnings:

npm WARN Invalid version: "1.10.7.1"
npm WARN ans-schema No description
npm WARN ans-schema No repository field.
npm WARN ans-schema No README data
npm WARN ans-schema No license field.

attempting validation with:
$npm run-script ans -- --ansfile=src/a-story.json --version=0.10.8 validate
of a-story.json story file results in:

npm ERR! Invalid version: "1.10.7.1"

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/arcxp/.npm/_logs/2021-05-19T01_02_22_923Z-debug.log

The log file contains:

0 info it worked if it ends with ok
1 verbose cli [ '/home/arcxp/.nvm/versions/node/v10.17.0/bin/node',
1 verbose cli   '/home/arcxp/.nvm/versions/node/v10.17.0/bin/npm',
1 verbose cli   'run-script',
1 verbose cli   'ans',
1 verbose cli   '--',
1 verbose cli   '--ansfile=src/a-story.json',
1 verbose cli   '--version=0.10.8',
1 verbose cli   'validate' ]
2 info using [email protected]
3 info using [email protected]
4 verbose stack Error: Invalid version: "1.10.7.1"
4 verbose stack     at Object.fixVersionField (/home/arcxp/.nvm/versions/node/v10.17.0/lib/node_modules/npm/node_modules/normalize-package-data/lib/fixer.js:191:13)
4 verbose stack     at /home/arcxp/.nvm/versions/node/v10.17.0/lib/node_modules/npm/node_modules/normalize-package-data/lib/normalize.js:32:38
4 verbose stack     at Array.forEach (<anonymous>)
4 verbose stack     at normalize (/home/arcxp/.nvm/versions/node/v10.17.0/lib/node_modules/npm/node_modules/normalize-package-data/lib/normalize.js:31:15)
4 verbose stack     at final (/home/arcxp/.nvm/versions/node/v10.17.0/lib/node_modules/npm/node_modules/read-package-json/read-json.js:428:5)
4 verbose stack     at then (/home/arcxp/.nvm/versions/node/v10.17.0/lib/node_modules/npm/node_modules/read-package-json/read-json.js:161:5)
4 verbose stack     at /home/arcxp/.nvm/versions/node/v10.17.0/lib/node_modules/npm/node_modules/read-package-json/read-json.js:382:12
4 verbose stack     at /home/arcxp/.nvm/versions/node/v10.17.0/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:115:16
4 verbose stack     at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
5 verbose cwd /home/arcxp/LVI/github/arcxp/arc-xp/ans-schema
6 verbose Linux 5.4.0-73-generic
7 verbose argv "/home/arcxp/.nvm/versions/node/v10.17.0/bin/node" "/home/arcxp/.nvm/versions/node/v10.17.0/bin/npm" "run-script" "ans" "--" "--ansfile=src/a-story.json" "--version=0.10.8" "validate"
8 verbose node v10.17.0
9 verbose npm  v6.11.3
10 error Invalid version: "1.10.7.1"
11 verbose exit [ 1, true ]

I tried using node 12 and node 10 and got the same errors in both cases.

I imagine that it is something others have run into already, any help in getting the local ans validator working would be greatly appreciated, I just need to validate a few story documents locally.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant