Giter Club home page Giter Club logo

Comments (7)

thely avatar thely commented on August 15, 2024 1

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.

from content.

aws95 avatar aws95 commented on August 15, 2024

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

from content.

thely avatar thely commented on August 15, 2024

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.

from content.

aws95 avatar aws95 commented on August 15, 2024

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/[email protected] 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/[email protected] dev: nuxt example
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @nuxt/[email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

from content.

benjamincanac avatar benjamincanac commented on August 15, 2024

@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?

from content.

aws95 avatar aws95 commented on August 15, 2024

yes i did, i installed everything using npm

from content.

benjamincanac avatar benjamincanac commented on August 15, 2024

@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.

from content.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.