Project

General

Profile

Actions

Defect #1189

closed

'npm install' - Maximum call stack size exceeded

Added by Vít Švanda over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Low
Assignee:
Vít Švanda
Category:
Frontend
Target version:
Start date:
07/23/2018
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

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.

Actions #1

Updated by Vít Švanda over 6 years ago

  • Priority changed from Normal to Low
Actions #2

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

Actions #3

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 :)

Actions #4

Updated by Vít Švanda over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF