Skip to content

Instantly share code, notes, and snippets.

@quieterkali
Last active January 6, 2018 02:01
Show Gist options
  • Save quieterkali/d3252c76d85b78bd7392f15a89dfd956 to your computer and use it in GitHub Desktop.
Save quieterkali/d3252c76d85b78bd7392f15a89dfd956 to your computer and use it in GitHub Desktop.
error do nodemon
sudo docker run -p 8080:3000 -v $(pwd):/home/security/Documents/projects/docker-source-monitor -w "/home/security/Documents/projects/docker-source-monitor" node npm start
> [email protected] start /home/security/Documents/projects/docker-source-monitor
> npm run watch
> [email protected] watch /home/security/Documents/projects/docker-source-monitor
> nodemon --watch ./src -e ts,ejs --exec "npm run compile && npm run views && npm run build"
sh: 1: nodemon: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] watch: `nodemon --watch ./src -e ts,ejs --exec "npm run compile && npm run views && npm run build"`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] watch script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-01-06T00_25_38_593Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `npm run watch`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-01-06T00_25_38_631Z-debug.log
{
"name": "dgree",
"version": "1.0.0",
"description": "An api to provide you news about your degree",
"main": "index.js",
"scripts": {
"start": "npm run watch",
"compile": "tsc",
"build": "node ./build/index.js",
"watch": "nodemon --watch ./src -e ts,ejs --exec \"npm run compile && npm run views && npm run build\"",
"test": "snyk test",
"views": "cp -r ./src/views/ ./build/",
"snyk-protect": "snyk protect",
"prepublish": "npm run snyk-protect"
},
"repository": {
"type": "git",
"url": "git+https://github.com/garotosdeprograma/course-monitor-api.git"
},
"author": "GDP (GarotosDePrograma)",
"license": "ISC",
"bugs": {
"url": "https://github.com/garotosdeprograma/course-monitor-api/issues"
},
"homepage": "https://github.com/garotosdeprograma/course-monitor-api#readme",
"dependencies": {
"@types/node": "https://registry.npmjs.org/@types/node/-/node-8.0.33.tgz",
"bcrypt": "^1.0.3",
"body-parser": "^1.18.2",
"cors": "^2.8.4",
"ejs": "^2.5.7",
"express": "^4.16.0",
"express-helpers": "^1.3.2",
"express-jwt": "^5.3.0",
"helmet": "^3.8.2",
"jsonwebtoken": "^8.1.0",
"mongoose": "^4.11.14",
"morgan": "^1.9.0",
"nodemailer": "^4.3.1",
"snyk": "^1.42.4"
},
"devDependencies": {
"@types/ejs": "^2.3.33",
"@types/node": "https://registry.npmjs.org/@types/node/-/node-8.0.33.tgz",
"chai": "^4.1.2",
"mocha": "^3.5.3",
"response-time": "^2.3.2",
"supertest": "^3.0.0",
"tslint": "^5.8.0",
"typescript": "https://registry.npmjs.org/typescript/-/typescript-2.5.3.tgz"
},
"snyk": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment