Posted 5 months ago by
mohammad ali (@mohammadali)
@tomgobich @mohammadali @mohammadali @tomgobich @tomgobich

1

1,078

AdonisJs Session Installing error

node ace add @adonisjs/session

[ info ] Installing the package using the following command : npm add @adonisjs/session

❯ Continue ? (y/N) · true

[ wait ] unable to install the package ...

[ error ] Command failed with exit code 1: npm install @adonisjs/session

Join The Discussion! (5 Replies)

Please sign in or sign up for free to join in on the dicussion.

  1. Commented 5 months ago

    Hey Mohammad!

    If you happen to be using NodeJS v22, maybe try using v21 or v20 instead. There might be something breaking in the latest NodeJS versions.

    It could also be a cache issue, in which case you can try npm cache clean --force

    1

    Please sign in or sign up for free to reply

    1. Commented 4 months ago

      Thanks.

      My node version is v21.6.1 also I tried npm cache clean —force, but still facing to the same issue while installing adonisjs session package

      0

      Please sign in or sign up for free to reply

      1. Commented 4 months ago

        If this isn't a brand new project, try giving this a go within a new project to see if you're having the same issue. If you are, it's likely something with your environment otherwise, it's possibly something with the project.

        If it's something with your project, you can try the following

        1. Delete the project's node_modules folder

        2. Delete the project's package-lock.json file (if this is not a new project be sure to have a version you can rollback to on Git should any version issues arise)

        3. Try running npm install to reinstall the dependencies

        You may also try cloning the project into another location on your device as sort of a clean slate attempt.

        Hope this helps!

        1

        Please sign in or sign up for free to reply

        1. Commented 4 months ago

          Thanks

          0

          Please sign in or sign up for free to reply

          1. Commented 4 months ago

            Anytime!

            0

            Please sign in or sign up for free to reply