F:>mkdir ajv001
F:>cd ajv001
F:\ajv001>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: (ajv001) version: (1.0.0) description: simple test with ajv and json entry point: (index.js) test command: git repository: keywords: catafest,json,ajv,nodejs author: catafest license: (ISC) About to write to F:\ajv001\package.json:
{ "name": "ajv001", "version": "1.0.0", "description": "simple test with ajv and json ", "main": "index.js", "scripts": { "test": "echo "Error: no test specified" && exit 1" }, "keywords": [ "catafest", "json", "ajv", "nodejs" ], "author": "catafest", "license": "ISC" }
Is this OK? (yes)
F:\ajv001>npm install ajv@6
added 6 packages, and audited 7 packages in 3s
1 package is looking for funding
run npm fund
for details
found 0 vulnerabilities