Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #97
    jacob_smith
    Participant

    Hello I try to run npm rum build on the production server via Laravel Forge. I have failed error with the follow output

    “> build
    > vite build

    sh: 1: vite: not found”

    #98

    It means you have not installed your dependencies on live server

    Just do “npm install” and you should be able to run any npm commands after that

    #199
    jacob_smith
    Participant

    It worked before when I just did npm install.

    Today I encountered the same problem which is “sh: 1: vite: not found” . So I did npm install as before but doing npm run build this time its failing again.

    What I did is issue command npm rebuild then after that when I run npm run build its working again.

    The output of running the command npm rebuild is: “rebuilt dependencies successfully”

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.