Static GitHub Issues

[1962] Cannot install nuxt.js when it is a dependency of a dependency

prev: Is it possible to use fs-extra?
next: Checking to/from inside transition object?

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?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1748">#c1748</a>)</em></sub></div>