问题描述
我安装了Web push:
npm i -S web-push
./node_modules/.bin/web-push generate-vapid-keys
'.' is not recognized as an internal or external command,operable program or batch file.
解决方法
我通过使用\
而不是/
来解决错误
.\node_modules\.bin\web-push generate-vapid-keys
,
您可以使用以下命令生成vapid-keys
:
npx web-push generate-vapid-keys [--json]