If 'gulp' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf gulpnpm ERR! missing script: start нет комады start в package.jsonpackage.json должны быть прописаны зависимости/плагины в ключах dependencies или devDependencies, если их нет, то зависимости/плагины необходимо установить как указано в руководстве с флагами --save --save-dev или --save --save-exact, и далее просто копировать gulpfile.js и package.json в новый проект и выполнять в нём команду npm install (как сказано в ответе выше) const path = require('path');
const gulp = require('gulp');
const pug = require('gulp-pug');
const cities = [
{
cityName : 'city1',
},
{
cityName : 'city2',
}
];
gulp.task('views', function(done) {
cities.forEach(function(city, index, cities) {
gulp.src('template/city.pug')
.pipe(pug({
data : city
}))
.pipe(gulp.dest(path.join('..', '..', 'domains', city.cityName)));
});
done();
});