Code Monkey home page Code Monkey logo

Comments (7)

remy avatar remy commented on July 19, 2024

Can you confirm how nodemon was invoked?

from nodemon.

louisbrulenaudet avatar louisbrulenaudet commented on July 19, 2024

Dear Remy,

I hope this message finds you well. I sought to emulate the behavior demonstrated in Node version 20.5.1, which involved utilizing the "nodemon" command to execute the "app.js" script within the context of my "start" script ("start": "nodemon app.js") as delineated in the "package.json" file. Additionally, I endeavored to incorporate environmental variables from an ".env" file using the command "nodemon --env-file=.env app.js."

Thank you for your attention to this matter.

Sincerely,
Louis

from nodemon.

remy avatar remy commented on July 19, 2024

I can't replicate. It's going to need more information from you - specifically how to replicate:

~/dev/nodemon/issues/2142$ npm run start

> start
> nodemon app.js

[nodemon] 3.0.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting `node app.js`
^C%

~/dev/nodemon/issues/2142$ cat package.json app.js
       │ File: package.json
   1   │ {
   2   │   "scripts": { "start": "nodemon app.js" }
   3   │ }
       │ File: app.js
   1   │ require('http').createServer((req, res) => res.end('ok')).listen(8000);
   2   │

~/dev/nodemon/issues/2142$ node -v
v20.5.1
SCR-20231031-lgdr

from nodemon.

github-actions avatar github-actions commented on July 19, 2024

This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up.
Thank you for contributing <3

from nodemon.

aquiles23 avatar aquiles23 commented on July 19, 2024

i replicated this using yarn2 with ts-node, but with npm, nodemon worked with no issues and i don't know why

from nodemon.

github-actions avatar github-actions commented on July 19, 2024

This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up.
Thank you for contributing <3

from nodemon.

github-actions avatar github-actions commented on July 19, 2024

Automatically closing this issue due to lack of activity

from nodemon.

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.