Answer the question
In order to leave comments, you need to log in
How to run npm from bat file?
Development is on Windows. At work, when I have time, I use c9.io. I came home, did a git pull and I'm working.
There is a sequence of commands to get started, namely:
$ npm install
$ bower install
$ gulp build
$ gulp watch
$ npm start
do(
rem Установка пакетов npm
call npm install
)
do(
rem Установка пакетов bower
call bower install
)
do(
rem Сборка проекта
call gulp build
)
do(
rem Запуск отслеживания изменения файлов
call gulp watch
)
do(
rem Запуск сервера приложения
call node "./server/app.js"
)
Answer the question
In order to leave comments, you need to log in
Will not.
Remove do() everywhere - there is no such operator in cmd.
Remove call everywhere - it is not needed here.
If the programs being launched (npm, bower, gulp, node) are not in the current directory or in PATH, then you need to write the full paths to the executable files.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question