Home

Issue: 1962

Cannot install nuxt.js when it is a dependency of a dependency

[issue link]

For example, say you have two projects:

  1. a base project, where nuxt.js is a dependency and where base nuxt configurations take place
  2. a child project, that depends on the base project (via npm, say "@org/base": "0.1.0")

Now in the child project, if you npm install, it will fail with:

ENOENT: no such file or directory, chmod '/path/to/project/node_modules/@org/base/node_modules/nuxt/bin/nuxt'

Ideally, the child project should be able to access the nuxt binaries, and have npm scripts like:

"dev": "nuxt",
"build": "nuxt build",
"generate": "nuxt generate",

And those built files should end up in the child project’s repo, in the .nuxt and dist folders, as expected.

Thoughts?

This question is available on Nuxt.js community (#c1748)