I am having some difficulties with managing packages with npm, especially 06 npm Test section.
I dont understand how to:
edit your package.json
file to make your scripts section look like
this instead:
"scripts": {
"test": "node test.js"
},
I get this when I try how-to-npm verify:
Running your test script…
npm-how-to@1.0.0 test /home/ubuntu/workspace
echo “Error: no test specified” && exit 1
Error: no test specified
npm ERR! Test failed. See above for more details.
…done!
Uh oh! The test failed!
Try creating a test that actually works.