Blair2004 / NexoPOS

The base version of NexoPOS, which is a web-Based Point Of Sale (POS) System build with Laravel, TailwindCSS, and Vue.Js.
https://my.nexopos.com
GNU General Public License v3.0
854 stars 354 forks source link

[Issue] missing script "prod" on local install #1985

Closed iamTakuu closed 2 weeks ago

iamTakuu commented 2 months ago

The bug When I reach the build stage and run 'npm run prod' I just get an error and cant start the application, here's the log:

1 info using npm@10.7.0
2 info using node@v18.20.4
3 silly config:load:file:/home/imp3tuz/.nvm/versions/node/v18.20.4/lib/node_modules/npm/npmrc
4 silly config:load:file:/home/imp3tuz/Desktop/nexopos/.npmrc
5 silly config:load:file:/home/imp3tuz/.npmrc
6 silly config:load:file:/home/imp3tuz/.nvm/versions/node/v18.20.4/etc/npmrc
7 verbose title npm run prod
8 verbose argv "run" "prod"
...
13 verbose stack Error: Missing script: "prod"
13 verbose stack
13 verbose stack To see a list of scripts, run:
13 verbose stack   npm run
13 verbose stack     at RunScript.run (/home/imp3tuz/.nvm/versions/node/v18.20.4/lib/node_modules/npm/lib/commands/run-script.js:79:13)
13 verbose stack     at async module.exports (/home/imp3tuz/.nvm/versions/node/v18.20.4/lib/node_modules/npm/lib/cli/entry.js:74:5)
14 verbose cwd /home/imp3tuz/Desktop/nexopos
15 verbose Linux 6.5.0-41-generic
16 verbose node v18.20.4
17 verbose npm  v10.7.0
18 error Missing script: "prod"
18 error
18 error To see a list of scripts, run:
18 error   npm run
19 verbose exit 1
20 verbose code 1

To Reproduce Steps to reproduce the behavior:

  1. Download latest release
  2. run composer install
  3. run npm install (even though docs say its not necessary past v4..)
  4. run npm run prod

Screenshots

Weirdly, running npm run dev, somewhat starts the server? image

image

image

Environment:

nexopos commented 1 month ago

Hi, the right command should actually be "npm run build".

iamTakuu commented 1 month ago

Yeah I tried running that and it builds but doesn't work. I'll try again when on my pc and let you know though 👌

Blair2004 commented 2 weeks ago

Closed for lack of activity. Feel free to comment if you have any update.