Home > Software engineering >  Not working npm run serve because there is no FilterService.js
Not working npm run serve because there is no FilterService.js

Time:12-30

how is it going?

I'm working on a Project with Vue.js.

I installed npm several times, but it keeps telling me that there is a couple of files that are not included in node_module folder.

Here is a detail of the error when I try the npm run serve:

ERROR 1

 error  in ./node_modules/primevue/api/FilterService.js

Syntax Error: no such file or directory, open 'C:\Users\guill\OneDrive\Escritorio\siis_frontend\node_modules\primevue\api\FilterService.js'     

ERROR 2

 error  in ./node_modules/core-js/modules/es.regexp.dot-all.js

Syntax Error: no such file or directory, open 'C:\Users\guill\OneDrive\Escritorio\siis_frontend\node_modules\core-js\modules\es.regexp.dot-all.js'     

Something that I should mention is that a partner of mine does not have those folder neither files. But he is running the project properly with no problems.

Is there something I could do to fix that? Thanks in advance...

CodePudding user response:

Let's start with some basic troubleshooting steps.

  1. Delete your node_modules-folder
  2. Delete the package-lock.json-file
  3. Navigate to the folder containing the package.json-file
  4. Run npm install

Let me know if this solves your problem or not.

  • Related