Skip to content
Snippets Groups Projects
Commit 9325f539 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-745: added node/npm options to fix legacy dependency issues and heap size issues

parent d7e50a1e
No related branches found
No related tags found
3 merge requests!634WIP: COBALT commissioning delta,!504TMSS-745: Responsive Telescope,!481Draft: SW-971 SW-973 SW-975: Various fixes to build LOFAR correctly.
......@@ -162,7 +162,7 @@ function(npm_install NPM_PACKAGE_SPECIFICATION)
add_custom_command(
OUTPUT "${NPM_BINARY_DIR}/node_modules" "${NPM_BINARY_DIR}/package-lock.json"
COMMAND npm install
COMMAND NODE_OPTIONS="--max-old-space-size=8192" npm install --legacy-peer-deps
DEPENDS "${NPM_BINARY_DIR}/package.json"
WORKING_DIRECTORY "${NPM_BINARY_DIR}"
COMMENT "Downloading npm dependencies for ${NPM_BINARY_DIR}/package.json")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment