Skip to main content
Solved

How do I fix missing gulp-tools error for Modern UI?


epetruncio
Freshman II

I have installed the 2024 R2 T290 learning course instance in the default folder address provided (C:\TCourseInstances\SmartFix_T290\) on install along with all options selected to true (install JSON, enable Modern UI, etc). 

Every time I run the script “npm run getmodules” I get the following:
 

Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\TCourseInstances\SmartFix_T290\FrontendSources\gulp-tools' imported from C:\TCourseInstances\SmartFix_T290\FrontendSources\gulpfile.ts
at finalizeResolution (node:internal/modules/esm/resolve:275:11)
at moduleResolve (node:internal/modules/esm/resolve:860:10)
at defaultResolve (node:internal/modules/esm/resolve:984:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:716:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:640:25)
at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:675:38)
at ModuleLoader.resolveSync (node:internal/modules/esm/loader:698:52)
at #cachedResolveSync (node:internal/modules/esm/loader:659:25)
at ModuleLoader.getModuleJobForRequire (node:internal/modules/esm/loader:387:50)
at new ModuleJobSync (node:internal/modules/esm/module_job:342:34) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///C:/TCourseInstances/SmartFix_T290/FrontendSources/gulp-tools'



I’ve looked high and low for solutions for this, but can’t find anything related to this. Can anyone please help me resolve this issue?

Best answer by epetruncio

I believe I found the answer. One must assure that they are using the correct version of Node.JS which currently, as of 1/27/2025 for Acumatica 24.207.0011, is 18.12.1. 

Hopefully if anyone runs into this mistake as well, this will help.

Make sure to install NVM, and then use the NVM commands to install the correct version (18.12.1) and then execute the command to use that version. Once that is done, the command npm run getmodules runs successfully.

View original
Did this topic help you find an answer to your question?

4 replies

Marco Villasenor
Jr Varsity II
Forum|alt.badge.img+2

If you do see the file “gulp-tools.ts” in your “C:\TCourseInstances\SmartFix_T290\FrontendSources\” folder, then it could be the “npm run getmodules” command is failing to install dependencies. It first runs an “npm i” command that installs required node modules and something could be failing there.
Try to look if there is another error earlier in the console output or try to run “npm i --no-save” directly just to make sure it is executing correctly.
Also make sure you are located in that folder when you run it and that your user has permissions to read and write on that folder.


Forum|alt.badge.img

Might be be fixed by adding ".js" to imports in gulp or gulp-tools

image (2).png

 

or  please try running

“npm install” to get all dependencies


epetruncio
Freshman II
  • Author
  • Freshman II
  • 4 replies
  • January 27, 2025

@Marco Villasenor I tried all things mentioned above, and nothing worked. I am doling this through Visual Studio which I am running as Administrator, so I should have permissions to write.

@varthinibhaskaran18 The files seemed to have all of the references that you showed in the image.

Here is the full message I get when running npm run getmodules after freshly installing the instance:


I did run the audit fix and audit fix --force, but I still receiving the gulp error with 0 vulnerabilities. after running audit fix --force.​


epetruncio
Freshman II
  • Author
  • Freshman II
  • 4 replies
  • Answer
  • January 27, 2025

I believe I found the answer. One must assure that they are using the correct version of Node.JS which currently, as of 1/27/2025 for Acumatica 24.207.0011, is 18.12.1. 

Hopefully if anyone runs into this mistake as well, this will help.

Make sure to install NVM, and then use the NVM commands to install the correct version (18.12.1) and then execute the command to use that version. Once that is done, the command npm run getmodules runs successfully.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings