这是安装成功了吗?如果是刚成功的,为什么borwser-sync start - -server --files="*"执行不了?
C:\Users\win7>npm install -g browser-sync
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 hav
e a low-severity ReDos regression when used in a Node.js environment. It is reco
mmended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/iss
ues/797)
C:\Users\win7\AppData\Roaming\npm\browser-sync -> C:\Users\win7\AppData\Roaming\
npm\node_modules\browser-sync\dist\bin.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules\br
owser-sync\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}
)
npm WARN notsup Unsupported engine for yargs@17.1.1: wanted: {"node":">=12"} (cu
rrent: {"node":"10.23.3","npm":"6.14.11"})
npm WARN notsup Not compatible with your version of node/npm: yargs@17.1.1
+ browser-sync@2.27.7
updated 1 package in 25.932s
F:\BaiduNetdiskDownload\PhpStudy2018\PHPTutorial\WWW\yidong>borwser-sync start -
-server --files="*"
'borwser-sync' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星