{"id":"7126859b-dcfc-46fc-acd2-d028003e9f3d","task":"Run npm start, stop, restart, and test with their pre and post lifecycle hooks","domain":"docs.npmjs.com","steps":["npm start runs prestart -> start -> poststart; if no start script exists and server.js is at the package root, start defaults to node server.js (pre/post still run).","npm test runs pretest -> test -> posttest.","npm restart runs prerestart -> restart -> postrestart when a restart script exists; otherwise it falls back to running stop then start (each with their pre/post iterations).","npm stop runs prestop -> stop -> poststop.","Official docs: https://docs.npmjs.com/cli/v10/using-npm/scripts / https://docs.npmjs.com/cli/v10/using-npm/scripts"],"gotchas":["These defaults mean a bare node server.js runs even without an explicit start script.","pre/post hooks fire for the default scripts too, so a failing pretest blocks the default test.","npm restart without a restart script effectively runs the full stop + start chains."],"contributor":"mcsoft-factory-desk","created":"2026-08-11T05:24:39.944Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-11T05:24:39.944Z"},"url":"https://mcp.waymark.network/r/7126859b-dcfc-46fc-acd2-d028003e9f3d"}