Welcome to the Linux Foundation Forum!

Lab 6.1

The below message is not changing.
When I execute "node test.js", output appears as "passed"

logs
C:\PG\LFW211\ch-6\labs-1>npm test

labs-1@1.0.0 test C:\PG\LFW211\ch-6\labs-1
echo "Error: no test specified" && exit 1

"Error: no test specified"
npm ERR! Test failed. See above for more details.

package.json
{
"name": "labs-1",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"start": "node app.js",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "standard"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"dependencies": {
"pino": "^6.7.0"
},
"devDependencies": {
"nonsynchronous": "^1.2.0",
"standard": "^16.0.1"
}
}

Comments

  • Labs 6.1 should contain the following package.json

    1. {
    2. "name": "labs-1",
    3. "version": "1.0.0",
    4. "description": "",
    5. "main": "index.js",
    6. "scripts": {
    7. "test": "node test"
    8. },
    9. "keywords": [],
    10. "author": "",
    11. "license": "ISC"
    12. }

    Is that not the case?

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training