curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash - sudo yum remove -y nodejs npm sudo yum install -y nodejs npm npm install -g cnpm --registry=https://registry.npm.taobao.org
主要是修改 将所有请求 都发送到 /index.html 处理。
location / {
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
上一篇:Vue入门十二、路由的跳转
下一篇:JavaScript试题和答案