How does Bookstack install npm dependencies without npm? #2145

Closed
opened 2026-02-05 03:05:53 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @abulgatz on GitHub (Mar 7, 2021).

I am trying to update some npm packages (codemirror in this case), and I am not sure how the app.js file is generated via composer / laravel using npm dependencies without npm actually being installed on my server.

Can someone explain the dist folder and the app.js gets built with npm dependencies but without using npm?

Originally created by @abulgatz on GitHub (Mar 7, 2021). I am trying to update some npm packages (codemirror in this case), and I am not sure how the app.js file is generated via composer / laravel using npm dependencies without npm actually being installed on my server. Can someone explain the dist folder and the app.js gets built with npm dependencies but without using npm?
Author
Owner

@abulgatz commented on GitHub (Mar 7, 2021):

Sorry, I now see that the production app is pushing out a prebuild app.js in the dist folder.

@abulgatz commented on GitHub (Mar 7, 2021): Sorry, I now see that the production app is pushing out a prebuild app.js in the dist folder.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2145