我已经构建了React Apps:
npm run build
Run Code Online (Sandbox Code Playgroud)
并安装全局服务包:
npm install -g serve
Run Code Online (Sandbox Code Playgroud)
并运行它:
serve -s build
Run Code Online (Sandbox Code Playgroud)
我怎么阻止它?
我试过serve help但它没有显示任何停止选项
选项:
Run Code Online (Sandbox Code Playgroud)-a, --auth Serve behind basic auth -c, --cache Time in milliseconds for caching files in the browser -n, --clipless Don't copy address to clipboard (disabled by default) -C, --cors Setup * CORS headers to allow requests from any origin (disabled by default) -h, --help Output usage information -i, --ignore Files and directories to ignore -o, --open Open local address in …
我已经使用WAMP 2.5和PHP 5.5.12以及Composer.php正在:
C:\wamp\bin\php\php5.5.12
Run Code Online (Sandbox Code Playgroud)
对于新项目,我需要使用nginx并安装PHP 7. php正在:
C:\nginx\php
Run Code Online (Sandbox Code Playgroud)
现在,使用GitBash MINGW32,我尝试使用Composer安装laravel 5.3,create-project但它说
[InvalidArgumentException]
Could not find package laravel/laravel with version 5.3 in a version
installable using your PHP version 5.5.12.
Run Code Online (Sandbox Code Playgroud)
我已经把两者C:\wamp\bin\php\php5.5.12和C:\nginx\php在Windows系统PATH变量.
如何更改Composer使用的PHP版本?