Проблемы со сборкой бета-версии 1.0

Я сталкиваюсь со следующими ошибками при попытке запустить npm start. Похоже, в package.json есть скрипт "сборки". npm build ничего не выводит. Любые идеи?

λ npm start                                                                                                    

> [email protected] start C:\repos\github\quill                                                               
> npm run build; foreman start -f _develop/procfile                                                            

npm WARN using --force I sure hope you know what you are doing.                                                
npm ERR! Windows_NT 10.0.10586                                                                                 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli
.js" "run" "build;" "foreman" "start" "-f" "_develop/procfile"                                                 
npm ERR! node v4.2.1                                                                                           
npm ERR! npm  v2.14.7                                                                                          

npm ERR! missing script: build;                                                                                
npm ERR!                                                                                                       
npm ERR! If you need help, you may report this error at:                                                       
npm ERR!     <https://github.com/npm/npm/issues>                                                               

npm ERR! Please include the following file with any support request:                                           
npm ERR!     C:\repos\github\quill\npm-debug.log                                                               

npm ERR! Windows_NT 10.0.10586                                                                                 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli
.js" "start"                                                                                                   
npm ERR! node v4.2.1                                                                                           
npm ERR! npm  v2.14.7                                                                                          
npm ERR! code ELIFECYCLE                                                                                       
npm ERR! [email protected] start: `npm run build; foreman start -f _develop/procfile`                         
npm ERR! Exit status 1                                                                                         
npm ERR!                                                                                                       
npm ERR! Failed at the [email protected] start script 'npm run build; foreman start -f _develop/procfile'.    
npm ERR! This is most likely a problem with the quill package,                                                 
npm ERR! not with npm itself.                                                                                  
npm ERR! Tell the author that this fails on your system:                                                       
npm ERR!     npm run build; foreman start -f _develop/procfile                                                 
npm ERR! You can get their info via:                                                                           
npm ERR!     npm owner ls quill                                                                                
npm ERR! There is likely additional logging output above.                                                      

npm ERR! Please include the following file with any support request:                                           
npm ERR!     C:\repos\github\quill\npm-debug.log                                                               

person LuddyPants    schedule 10.05.2016    source источник


Ответы (2)


скрипты npm запускаются с npm run, поэтому вам нужно будет вызвать npm run build. Почему npm build ничего не делает, это особенность npm: `npm build` скрипт с именем build в package.json

person jhchen    schedule 10.05.2016

измените стартовый скрипт на это:

"start": "npm run build \"foreman start -f _develop/procfile\"",

Несколько символов экранированы

person 杨龙龙    schedule 22.07.2016