Skip to main content
Answer

24R2 Modern UI npm commands fails ERR_MODULE_NOT_FOUND

  • May 7, 2025
  • 1 reply
  • 94 views

Forum|alt.badge.img+1

I’m trying to follow course T290 and work with Modern UI screens. I’m hitting one problem after another.

The first problem was that "npm run getmodules” failed with error “ERR_MODULE_NOT_FOUND”.

Running “node --version” reported v23.11.0, so I un-installed node.js and installed version 22.15.0 instead.

“npm run getmodules” was then able to finish successfully. (Using a Powershell terminal, as Administrator, in directory C:\Acumatica\SmartFix_T290\FrontendSources.)

“npm run build-dev” also succeeds.

 

But I would expect to be able to recompile a single screen using e.g.:

cd screen

npm run build-dev -- --env screenIds=SO101000

This failed with error 'screenIds=SO101000' is an invalid value for the --progress option. Only 'profile' is allowed.

However, this succeeded (note the extra dash):
npm run build-dev --- --env screenIds=SO101000

 

There’s a few deprecation warnings. (ts-loader: Using ttypescript@4.6.2. This version may or may not be compatible with ts-loader.)

 

Best answer by kpopova

Version 2024 R2 comes with Node.js 22.8 (see here https://help-2024r2.acumatica.com/Help?ScreenId=ShowWiki&pageid=5cf164e5-889f-458b-8757-320c96598ab7), where two dashes in the screen build command should be used.
While Version 2025 R1 comes with Node.js 22.11 (https://help.acumatica.com/(W(2))/Help?ScreenId=ShowWiki&pageid=5cf164e5-889f-458b-8757-320c96598ab7). Here you need three dashes in this command.

1 reply

kpopova
Acumatica Employee
Forum|alt.badge.img+2
  • Acumatica Employee
  • Answer
  • May 7, 2025

Version 2024 R2 comes with Node.js 22.8 (see here https://help-2024r2.acumatica.com/Help?ScreenId=ShowWiki&pageid=5cf164e5-889f-458b-8757-320c96598ab7), where two dashes in the screen build command should be used.
While Version 2025 R1 comes with Node.js 22.11 (https://help.acumatica.com/(W(2))/Help?ScreenId=ShowWiki&pageid=5cf164e5-889f-458b-8757-320c96598ab7). Here you need three dashes in this command.