Defect #1189
closed'npm install' - Maximum call stack size exceeded
100%
Description
If 'gulp install' was using for install of the frontend, then symlinks of CzechIdM modules are in the 'node_modules' folder.
Problem occures when we want executed 'npm install'.
In this case the 'Maximum call stack size exceeded' exception is returned.
We can solve this with delete symlinks from the node_modules folder manually, but this is not comfortable.
Better solution will be found in that task.
Updated by Vít Švanda over 6 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Vít Švanda to Radek Tomiška
- % Done changed from 0 to 90
Solution:
- Before 'npm install' use the 'npm prune'. That command remove dependencies which are not in the package.json (it means all CzechIdM modules).
- I created new tasks in the 'gulpfile'. 'npmPrune' and 'npmInstall'. Gulp install can be using repeatly now. And 'gulp install' can be uses instead command 'npm install'.
https://github.com/bcvsolutions/CzechIdMng/commit/486df9971c9904b4cc1a0ba071e814a85e1e9970
Documentation:
https://github.com/bcvsolutions/CzechIdMng/blob/develop/Realization/frontend/README.md#update-dependencies
Updated by Radek Tomiška over 6 years ago
- Status changed from Needs feedback to Resolved
- Assignee changed from Radek Tomiška to Vít Švanda
- % Done changed from 90 to 100
I did test and review, it works, thx! Using 'gulp install', when some dependency version is changed, is comfortable now :)