pnpm start

Equivalent to pnpm run start.

pnpm start [<args>...]

运行软件包 scripts 对象中 start 属性指定的任意命令。 Arguments after pnpm start are passed to the script verbatim.

If no start property is specified on the scripts object, pnpm runs node server.js when server.js exists in the project directory. The prestart and poststart scripts still run around it when enablePrePostScripts is on. If neither exists, the command fails with Missing script start or file server.js.

该属性的预期用途是指定一个启动你程序的命令。