Angular2-express-mongoose-gulp-node-typescript
Angular2-express-mongoose-gulp-node-typescript copied to clipboard
when I update the file, website doesn't work
when i run these commands first time, everything goes well.
npm install
npm run build
npm run deploy
but, when I change the file client/app/app.component.ts
like this: set the value of title
property to 'Hello world', and save it. There are errors happened.
To solve this issue, how should I do? Thank you.
the content of npm-debug.log
is as follows:
0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/Cellar/node/7.4.0/bin/node', 1 verbose cli '/usr/local/bin/npm', 1 verbose cli 'run', 1 verbose cli 'deploy' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'predeploy', 'deploy', 'postdeploy' ] 5 info lifecycle [email protected]~predeploy: [email protected] 6 silly lifecycle [email protected]~predeploy: no script for predeploy, continuing 7 info lifecycle [email protected]~deploy: [email protected] 8 verbose lifecycle [email protected]~deploy: unsafe-perm in lifecycle true 9 verbose lifecycle [email protected]~deploy: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/anjia/GitHub/master0810/node_modules/.bin:/usr/local/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin 10 verbose lifecycle [email protected]~deploy: CWD: /Users/anjia/GitHub/master0810 11 silly lifecycle [email protected]~deploy: Args: [ '-c', 11 silly lifecycle 'concurrently --kill-others "gulp watch" "node ./dist/server/bin/www"' ] 12 silly lifecycle [email protected]~deploy: Returned: code: 1 signal: null 13 info lifecycle [email protected]~deploy: Failed to exec deploy script 14 verbose stack Error: [email protected] deploy: `concurrently --kill-others "gulp watch" "node ./dist/server/bin/www"` 14 verbose stack Exit status 1 14 verbose stack at EventEmitter.(/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:279:16) 14 verbose stack at emitTwo (events.js:106:13) 14 verbose stack at EventEmitter.emit (events.js:191:7) 14 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14) 14 verbose stack at emitTwo (events.js:106:13) 14 verbose stack at ChildProcess.emit (events.js:191:7) 14 verbose stack at maybeClose (internal/child_process.js:885:16) 14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 15 verbose pkgid [email protected] 16 verbose cwd /Users/anjia/GitHub/master0810 17 error Darwin 15.6.0 18 error argv "/usr/local/Cellar/node/7.4.0/bin/node" "/usr/local/bin/npm" "run" "deploy" 19 error node v7.4.0 20 error npm v4.1.1 21 error code ELIFECYCLE 22 error [email protected] deploy: `concurrently --kill-others "gulp watch" "node ./dist/server/bin/www"` 22 error Exit status 1 23 error Failed at the [email protected] deploy script 'concurrently --kill-others "gulp watch" "node ./dist/server/bin/www"'. 23 error Make sure you have the latest version of node.js and npm installed. 23 error If you do, this is most likely a problem with the angular2-express-mongo package, 23 error not with npm itself. 23 error Tell the author that this fails on your system: 23 error concurrently --kill-others "gulp watch" "node ./dist/server/bin/www" 23 error You can get information on how to open an issue for this project with: 23 error npm bugs angular2-express-mongo 23 error Or if that isn't available, you can get their info via: 23 error npm owner ls angular2-express-mongo 23 error There is likely additional logging output above. 24 verbose exit [ 1, true ]
the changes do not go into effect immediately, I need to rebuild manually.
You must make sure that you have installed the node_modules. You must check the nodeJS version and npm version.
having the same issue