Npm run start error after deployment of nuxt.js project

The configuration in

package.json is as follows

"scripts": {
    "dev": "nuxt",
    "build": "cross-env NODE_ENV=production nuxt build && nuxt start",
    "start": "nuxt start",
    "server": "cross-env NODE_ENV=production nodemon server --exec babel-node --presets es2015,stage-2",
    "online": "babel server -d dist --presets es2015,stage-2",
    "serve": "cross-env NODE_ENV=production pm2 start dist/index.js",
    "generate": "nuxt generate",
    "lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
    "precommit": "npm run lint"
  }

there are only these files in the .nuxt folder after the nuxt project build

clipboard.png

.nuxtstatic,package.jsonnuxt.config.js

clipboard.png

npm run start

Error: No SSR build! Please start with nuxt start --spa or build using nuxt build --universal

clipboard.png

What is the reason for

? How to deploy correctly.


Don't use nuxt, or try the two commands it prompts


1: first download dependent npm i;
2:npm build (build first);
3:npm start (execute this command to find the .nuxt file found by build);

Menu