A question about the UI build - Why sometimes we n...
# dev
t
A question about the UI build - Why sometimes we need to explicitly do
npm install
to build the UI after a new node module is added? I mean, looking at the Makefile I expect the following to happen on
make build
- make build -> gen > gen-ui -> ui-build -> $(UI_DIR)/node_modules (that does npm install)
👍 1
b
We excluded the
npm
package install from the default build step as it is a very long process. A new build machine will not have a node_module and we condition that in the makefile to install npm packages. We can add it to the clean step so an incremental build will not install it and a fresh clean will work for you?
n
What about performing npm update instead of install in existing envs?
b
npm update will update the versions of the packages. we like to update your environment with new packages specified in package.json
t
We can add it to the clean step so an incremental build will not install it and a fresh clean will work for you?
That makes sense, thanks for the explanation!
n
I think in this specific case - the problem was that we needed to update an existing package, @Tal Sofer correct me if I'm wrong?
t
We needed to install new package
n
I guess I misunderstood the error