Can't install Validator on Adonis 4.1

#1

In a fresh AdonisJs project, I try to install the validator service doing:

adonis install @adonisjs/validator

or

npm i --save @adonisjs/validator

It fails with the error message:

npm ERR! enoent ENOENT: no such file or directory, rename ‘/sites/adonistest/node_modules/indicative’ -> ‘/sites/adonistest/node_modules/.indicative.DELETE’

The same error appears when I try to install the indicative library by itself (npm i indicative)

Any idea why it is failing?

0 Likes

#2

Hey @gcomes! :wave:

I never show this error message. :face_with_raised_eyebrow:
Have you tried to entirely delete the node_modules directory?

Also, could you give use your Node.js & npm version?

0 Likes

#3

Hi Romain, thanks. Deleting the node_modules directory and installing again solved the problem (sorry, should have tried this first… node.js newbie here :sweat_smile:)

1 Like