nitro icon indicating copy to clipboard operation
nitro copied to clipboard

Cannot detect workspace root with zero install global cli

Open eduplessis opened this issue 1 year ago • 1 comments

Environment

Node v18.9.0 npm v8.19.1

Do exactly what the doc say.

Sorry if it's feel little bit wrong and I don't want to put pressure on you. You are doing a suppppperb job with all of the unjs package and Nuxt too.

Reproduction

Do exactly what the doc say

Describe the bug

Cannot detect workspace root

when following the getting started guide.

image

Additional context

No response

Logs

Error: Cannot detect workspace root from /home/eduplessis/nitro-app
    at findWorkspaceDir (file:///home/eduplessis/.npm/_npx/c367e59d342c6fbd/node_modules/pkg-types/dist/index.mjs:117:9)
    at async loadOptions (file:///home/eduplessis/.npm/_npx/c367e59d342c6fbd/node_modules/nitropack/dist/shared/nitro.9c828268.mjs:2271:26)
    at async createNitro (file:///home/eduplessis/.npm/_npx/c367e59d342c6fbd/node_modules/nitropack/dist/shared/nitro.9c828268.mjs:2347:19)
    at async main (file:///home/eduplessis/.npm/_npx/c367e59d342c6fbd/node_modules/nitropack/dist/cli.mjs:65:19)

eduplessis avatar Oct 07 '22 14:10 eduplessis

Have you run an npm install?

danielroe avatar Oct 07 '22 15:10 danielroe

@danielroe @pi0 Since in the doc there's no mention to make a npm install or to install it globally, no i've not made a npm install. so yeah I think the change for the title is right.

eduplessis avatar Oct 17 '22 14:10 eduplessis