-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
nodemon keeps looking for index.js file even if i specified otherwise, thus throwing error. #820
Comments
I just can't reproduce your problem: mkdir build
echo 'console.log("Hello World")' > build/index.js
nodemon ./build Which starts nodemon:
It seems you didn't give us all the information. Is there anything special you didn't mention? |
yeah, i'm sorry but i'm just stupid sometimes. |
I know it might this not be relevant right now, however this is google result 2 for the issue, but I had this issue as well. The problem was that I copied a config file off of stackoverflow like follows: "scripts": {
"dev": "nodemon --config nodemon.json"
}, {
"verbose": true,
"execMap": {
"js": "node --harmony"
},
"script": "server.js",
"ext": "js mustache"
} The issue is that the package.json really needs to be "scripts": {
"dev": "nodemon --config nodemon.json server.js"
}, Hope this helps someone. |
FWIW, I ran into this same error but added the following as a script in packages.json:
After this, I could run: |
Hello,
when i run
nodemon ./build
I get Error: Cannot find module
/path/to/project/home/index.js
while i've explicitly specified that it should check in the build/ directory, this is persisting even when i writenodemon ./build/index.js
.In the
build/index.js
i only have aconsole.log('hello world');
string.Note: this error is not in
nodemon: 1.8.1
.Am I missing something?
The text was updated successfully, but these errors were encountered: