Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Once i try to run the project after cloning it i get this error message, can anyone help? #98

Closed
aws95 opened this issue Jun 4, 2020 · 7 comments
Labels
question Further information is requested

Comments

@aws95
Copy link

aws95 commented Jun 4, 2020

FATAL Both nuxt and nuxt-edge dependencies are installed! This is unsupported, please choose one and remove the other one from dependencies. 11:43:14

at Object.run (node_modules@nuxt\cli-edge\dist\cli-index.js:3025:11)
at Object. (node_modules\nuxt-edge\bin\nuxt.js:4:31)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @nuxt/content@1.2.0 dev: nuxt example
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @nuxt/content@1.2.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

@aws95 aws95 added the question Further information is requested label Jun 4, 2020
@thely
Copy link

thely commented Jun 4, 2020

What's your nuxt.config.js look like? How are you installing nuxt/content? It's best to install it via yarn/npm so it's in your package.json.

@aws95
Copy link
Author

aws95 commented Jun 4, 2020

yes i installed it via npm, the project didn't come with a "nuxt.config.js" file plus this is how my package.json file looks like :
image
image

@thely
Copy link

thely commented Jun 4, 2020

Are you intending to help develop nuxt/content, or are you trying to build a project in nuxt that uses nuxt/content? If it's the former, the devs are the ones who would be able to help you.

If it's the latter, you're going about this the wrong way. Apologies if you're not new to this and I'm misreading your issue. To start a nuxt project with all the correct default folders, use the create-nuxt-app scaffolding tool (instructions here), then install nuxt/content and add it to your NuxtJS project via the instructions here.

@aws95
Copy link
Author

aws95 commented Jun 4, 2020

my issue is that i wante dto clone this project : https://github.com/nuxt/content and run it, after i installed evrything with npm i ran : "npm run dev" and that error popped up,th eproject that already exists and that i cloned doesn't come with a nuxt.config file and this error keeps popping up :

@nuxt/content@1.2.0 dev C:\Users\ThinkPad\Desktop\Main\Job Trainer\nuxtContent\content
nuxt example

FATAL Both nuxt and nuxt-edge dependencies are installed! This is unsupported, please choose one and remove the other one from dependencies. 15:53:49

at Object.run (node_modules@nuxt\cli-edge\dist\cli-index.js:3025:11)
at Object. (node_modules\nuxt-edge\bin\nuxt.js:4:31)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @nuxt/content@1.2.0 dev: nuxt example
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @nuxt/content@1.2.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

@benjamincanac
Copy link
Member

@aws95 The project you cloned is the source code of the content module, you won't be able to use it this way. As mentioned @thely, you should try to create a Nuxt.js project and install the module following the documentation.

Regarding the error you got, the content module uses nuxt-edge as a dev dependencies to run the example. You can't have nuxt and nuxt-edge installed at the same time. Did you ran a npm install nuxt beforehand?

@aws95
Copy link
Author

aws95 commented Jun 4, 2020

yes i did, i installed everything using npm

@benjamincanac
Copy link
Member

@aws95 If you installed nuxt locally, you have to deinstall it (npm uninstall nuxt) cause the library already installed nuxt-edge which is the preview version of nuxt.

@atinux atinux closed this as completed Jun 5, 2020
pi0 pushed a commit that referenced this issue May 5, 2022
Co-authored-by: Renovate Bot <bot@renovateapp.com>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants