Skip to content

There is a problem with nodemon #25

Closed
@miguelemosreverte

Description

@miguelemosreverte

I developed a project on top of this, and a few months ago I started having this problem. For a while I though it was a bug on my end, but after downloading a fresh clone of this project it seems I can replicate the bug. Here is the output of running docker-compose up on the first example, 01-express-nodemon:

Starting 01expressnodemon_web_1 ...
Starting 01expressnodemon_web_1 ... done
Attaching to 01expressnodemon_web_1
web_1 |
web_1 | > [email protected] start /src
web_1 | > nodemon -L app/bin/www
web_1 |
web_1 |
web_1 | /usr/local/lib/node_modules/nodemon/node_modules/update-notifier/index.js:2
web_1 | const spawn = require('child_process').spawn;
web_1 | ^^^^^
web_1 | SyntaxError: Use of const in strict mode.
web_1 | at Module._compile (module.js:439:25)
web_1 | at Object.Module._extensions..js (module.js:474:10)
web_1 | at Module.load (module.js:356:32)
web_1 | at Function.Module._load (module.js:312:12)
web_1 | at Module.require (module.js:364:17)
web_1 | at require (module.js:380:17)
web_1 | at Object. (/usr/local/lib/node_modules/nodemon/bin/nodemon.js:15:1)
web_1 | at Module._compile (module.js:456:26)
web_1 | at Object.Module._extensions..js (module.js:474:10)
web_1 | at Module.load (module.js:356:32)
web_1 |
web_1 | npm ERR! Linux 4.10.0-33-generic
web_1 | npm ERR! argv "node" "/usr/local/bin/npm" "start"
web_1 | npm ERR! node v0.10.38
web_1 | npm ERR! npm v2.11.1
web_1 | npm ERR! code ELIFECYCLE
web_1 | npm ERR! [email protected] start: nodemon -L app/bin/www
web_1 | npm ERR! Exit status 8
web_1 | npm ERR!
web_1 | npm ERR! Failed at the [email protected] start script 'nodemon -L app/bin/www'.
web_1 | npm ERR! This is most likely a problem with the app package,
web_1 | npm ERR! not with npm itself.
web_1 | npm ERR! Tell the author that this fails on your system:
web_1 | npm ERR! nodemon -L app/bin/www
web_1 | npm ERR! You can get their info via:
web_1 | npm ERR! npm owner ls app
web_1 | npm ERR! There is likely additional logging output above.
web_1 |
web_1 | npm ERR! Please include the following file with any support request:
web_1 | npm ERR! /src/npm-debug.log
01expressnodemon_web_1 exited with code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions