Answer the question
In order to leave comments, you need to log in
Error ""node_modules" is not an internal or external command..." when executing a gulp script?
Good afternoon. Please tell me how to fix the error.
In package.json I write the package.json script
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build-production": "node_modules/gulp/bin/gulp.js build:production",
"build-develop": "node_modules/gulp/bin/gulp.js build:develop",
"watch": "node_modules/gulp/bin/gulp.js watch",
"server": "node_modules/gulp/bin/gulp.js server"
}
gulp.task('server', function () {
server.listen(port, () => {
console.log('Running at http://localhost:' + port);
});
gulp.run('build:develop')
gulp.watch(paths.src.styles, ['styles:develop']);
gulp.watch(paths.src.scripts, ['scripts:develop']);
})
D:\cookies\frontend_usability>npm run server
> [email protected] server D:\cookies\frontend_usability
> node_modules/gulp/bin/gulp.js server
"node_modules" is not an internal or external
command, executable, or batch file.
Answer the question
In order to leave comments, you need to log in
Either the program is not installed, or it is installed, but it is not in PATH and the operating system does not know where to look for it.
If the program is definitely installed, then write the path to it in PATH or specify the full path when accessing it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question