Skip to content

Error on a fresh installation (ENOTDIR: not a directory, open) #208

@arturwojnar

Description

@arturwojnar

Just after the npx nuxi init -t themes/alpine and trying to do npm run build I get the error:

NodejS v21.7.3. The same issue appears when trying to deploy this project on Vercel.

What's happening?

[ nuxi  6:20:48 PM] Nuxt 3.15.4 with Nitro 2.10.4
[nuxt 6:20:49 PM] ℹ Using 2024-04-03 as fallback compatibility date.
[ nuxi  6:20:53 PM] ℹ Building for Nitro preset: node-server

[6:20:53 PM]  ERROR  ENOTDIR: not a directory, open '$HOME/test/node_modules/@nuxt/kit/dist/index.mjs/package.json'

    at Object.readFileSync (node:fs:442:20)
    at read (node_modules/mlly/dist/index.mjs:572:17)
    at getPackageScopeConfig (node_modules/mlly/dist/index.mjs:663:27)
    at packageResolve (node_modules/mlly/dist/index.mjs:1814:25)
    at moduleResolve (node_modules/mlly/dist/index.mjs:1954:18)
    at _tryModuleResolve (node_modules/mlly/dist/index.mjs:2023:12)
    at _resolve (node_modules/mlly/dist/index.mjs:2078:16)
    at resolveSync (node_modules/mlly/dist/index.mjs:2111:10)
    at resolvePathSync (node_modules/mlly/dist/index.mjs:2121:24)
    at resolveModule (node_modules/@nuxt/kit/dist/index.mjs:2553:10)
    at node_modules/nuxt-component-meta/dist/module.mjs:103:17
    at node_modules/hookable/dist/index.mjs:48:66
    at node_modules/hookable/dist/index.mjs:48:56
    at async node_modules/nuxt/dist/shared/nuxt.CrJjphBv.mjs:2962:7
    at async resolveApp (node_modules/nuxt/dist/shared/nuxt.CrJjphBv.mjs:6263:3)
    at async generateApp (node_modules/nuxt/dist/shared/nuxt.CrJjphBv.mjs:6109:3)
    at async _applyPromised (node_modules/perfect-debounce/dist/index.mjs:54:10) 



[6:20:53 PM]  ERROR  ENOTDIR: not a directory, open '/home/artur/projects/test/node_modules/@nuxt/kit/dist/index.mjs/package.json'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions