Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. B

    Node.JS Rotes in Nodejs

    It is in this file index.js main const tasks = require("../models/tasks"); module.exports = app =>{ app.get("/", (req, res) =>{ res.json({status: "NTask API"}); }); }; module.exports = app => { const Tasks = app.models.tasks; app.get("/tasks", (req,res) => {...
  2. B

    Node.JS Rotes in Nodejs

    Hello! I´m doing a rote to search but it´isnt work C:\Users\arifu\ntask-api\node_modules\consign\lib\consign.js:121 ^ Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\ar\ntask-api\models\tasks.js from C:\Users\ar\ntask-api\node_modules\consign\lib\consign.js not supported...
  3. B

    Node.JS My file in nodejs with express don´t work

    Thank you update the version babel .all right
  4. B

    Node.JS My file in nodejs with express don´t work

    I try to install but to apear this npm install express npm ERR! code ETARGET npm ERR! notarget No matching version found for [email protected]. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist. npm ERR! A...
  5. B

    Node.JS My file in nodejs with express don´t work

    package.json { "name": "ntask-api", "version": "1.0.0", "description": "API de gestão de tarefas", "main": "index.js", "type": "module", "scripts": { "start": "babel-node index.js" }, "author": "", "dependencies": { "babel-cli": "7.0.0", "babel-preset-env"...
  6. B

    Node.JS My file in nodejs with express don´t work

    It´s giving this wrong, but it´s better before. node:internal/modules/esm/resolve:853 throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null); ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'express' imported from C:\Users\ar\ntask-api\index.js at...
  7. B

    Node.JS My file in nodejs with express don´t work

    Hello! When I execute the code nodejs with npm start this message apear. (node:3900) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension. (Use node --trace-warnings ... to show where the warning was created) C:\Users\ar\ntask-api\index.js:1 import...
Back
Top Bottom