nodemon Questions
0
I use nodemon to watch file changes in a TypeScript Node.JS codebase. When a change is detected, esbuild and esbuild-register are used to transpile the code to CommonJS files and the application re...
Celik asked 8/10, 2022 at 7:25
5
I am trying to mount my working node code from my host into a docker container and run it using nodemon using docker-compose.
But container doesn't seems to be able to find nodemon.
Note: My host m...
Diseur asked 12/11, 2015 at 2:40
20
I have a pretty basic nodemon configuration. I'm fixing this legacy node 7 project that I inherited and trying to make the development process a little bit painful. First thing first, a proper rest...
3
I have a Node.js server I am developing and I'm using nodemon to have the server restarted when the source code changes.
This server has a dependency on another module, which I am also developing,...
Indistinguishable asked 3/4, 2017 at 16:6
5
Solved
Here are my files :
package.json :
"scripts": {
"generate-interfaces": "ts-node src/cli/generate-interfaces.ts",
"dist": "npm run generate-interfaces ...
Warmedover asked 17/6, 2020 at 16:52
0
I'm working in TypeScript, using modern import statements. Running nodemon (which then uses ts-node) this obviously results in SyntaxError: Cannot use import statement outside a module. Fair enough...
Circumstantial asked 29/4, 2022 at 15:42
3
Solved
Is there a way to specify watch list using config files instead of command line?
Command line method in nodemon's doc:
I attempted to use a nodemon.json config file with the following:
{
"...
Empower asked 9/4, 2021 at 11:7
5
Solved
I am in the process of making a discord bot. All of the code that I have written for the bot works except for the batch file that is supposed to run it. Originally I was just using the node command...
Clyte asked 27/8, 2018 at 14:35
5
It seems the local server started with "heroku local web" does not watch for file changes and restart itself. How can I make it do this?
2
Solved
I'm doing a startup server. Basically It has initial setup with express and nodemon dependencies. Unfortunately, I'm getting ERR_MODULE_NOT_FOUND when running yarn dev or npm run dev
Here is the co...
1
I am trying to make Nodemon run two different commands depending on which file changed. I tried using nodemon.json and invoking it using nodemon nodemon.json (because it didn't seem to be getting p...
Everything asked 15/8, 2019 at 15:1
4
Solved
I would like to exclude some specific files from monitoring of NodeMon. How can I do this?
My existing configuration:
nodemon: {
all: {
script: 'app.js',
options: {
watchedExtensions: ['js']
...
Derinna asked 9/6, 2014 at 12:8
31
Solved
I have a problem: nodemon does not run off the npm script (e.g. npm start),
but if nodemon is called on the command line outside the npm script, nodemon runs as normal.
$ nodemon server.js
14 Feb ...
4
Solved
I am learning GraphQL for my project using this tutorial:
https://www.youtube.com/watch?v=ZQL7tL2S0oQ&ab_channel=WebDevSimplified
and I get the error:
TypeError: expressGraphQL is not a functio...
Noach asked 31/12, 2020 at 7:36
10
Running a test for a nodejs project on windows 10
with the line in package.json as:
"test": "nodemon --exec 'mocha -R min'"
I get:
> nodemon --exec 'mocha -R min'
[nodemon] 1.11.0
[nodemo...
5
Solved
In a Universal Javascript app, I would like nodemon to ignore client directory changes.
I have tried the following:
"devStart": "nodemon server/server.js --ignore 'client/*' --exec babel-node",
"...
Petronella asked 28/1, 2017 at 18:10
5
Solved
I read many threads sabout this but no one solves anything.
Some say you have to add --legacy-watch (or -L) to the nodemon command.
Others shows several different configurations and apparently no...
Blink asked 15/9, 2019 at 16:32
2
I believe nodemon is supposed to watch all directories for changes by default (expect for node_module, etc).
nodemon /bin/www 3000
But it's only monitoring changes to files in the root folder.
...
Procedure asked 9/4, 2016 at 9:10
19
Solved
I would like to use nodemon from within the WebStorm IDE (version 7). Nodemon watches one or more files in my source folder and restarts the node process (an Express server in this case), when one ...
Achondrite asked 4/10, 2013 at 12:1
4
Solved
My Nodemon kept start and looking for index.js, but I want to use app.js as most people now use app.js.
How do I update my nodemon to look for app.js instead ?
I tried to uninstall, reinstall ...
6
I'm learning Node.js, my demo has two files:
/server.js
/public/index.html
/server.js will get /public/index.html and then return to the client.
I'd like to use nodemon to auto reload when /p...
3
Solved
I'm trying to use ts-node with nodemon. Both are installed using yarn and my package.json has the following structure:
{
"name": "yarnTest",
"version": "1.0.0",
"main": "index.js",
"license": ...
Rubin asked 9/7, 2017 at 9:32
4
I'm trying to use nodemon inside docker container:
Dockerfile
FROM node:carbon
RUN npm install -g nodemon
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 8080
CMD [ "no...
Reformatory asked 18/1, 2018 at 16:24
1
Solved
Hello is there any chance of making nodemon watch for changes of a specific module in node_modules
I have started the nodemon like this
nodemon index.js --watch 'node_modules/specific_module/**
...
Meyerbeer asked 15/9, 2018 at 18:36
5
Solved
I've started playing around with Koa, but so far have been unable to find a decent solution for automatically reloading the application upon code changes.
My understanding is that nodemon is the p...
© 2022 - 2024 — McMap. All rights reserved.