A
A
AndreyRaf132019-11-25 01:40:35
Windows
AndreyRaf13, 2019-11-25 01:40:35

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"
  }

gulpfile.js
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']);
})

I get an error
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.

Thanks in advance for your help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem @Jump, 2019-11-25
curated by the

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 question

Ask a Question

731 491 924 answers to any question