The linux server runs npm run build to report an error and find a way to break it.

linux server running npm run build error

clipboard.png

There is nothing wrong with running

locally, but if you want to execute the packaging command on the linux server, you will get an error.
below is an error message. Ask God for help.

Oct.24,2021

have all the npm packages that the project depends on been installed successfully?


first npm I
then npm run build


pay attention to your file to see if there is a case problem in it:

for example, the name of the file is lowercase, but it is written in uppercase

through import.
Menu