npm start [-- <args>]
This runs an arbitrary command specified in the package's "start" property of its "scripts" object. If no "start" property is specified on the "scripts" object, it will run node server.js.
14 error enoent ENOENT, open 'C:\Users\Sergey\package.json'
{
"scripts": {
"start": "node server.js"
}
} Math.round(785/10)*10function round(n, f) {
f = Math.pow(10, -f);
return Math.round(n / f) * f;
}
round(785, -1) // 790app.use(function* (next) {
if (this.request.path === '/') {
this.response.body = 'hello world';
} else {
//yield next;
}
});
app.use(function* (next) {
this.response.body = 'hello world not from root';
yield next;
});var gulp = require('gulp');
var spawn = require('child_process').spawn;
var ping;
gulp.task('ping', function() {
ping = spawn('ping', ['localhost'], {
stdio: 'inherit' // для примера, серверу не нужно
});
});
gulp.task('test', ['ping'], function() {
setTimeout(function() {
ping.kill();
}, 2000);
}); Math.round(0.955*100)/100