Why when running web-push generate-vapid-keys --json there is an error:
web-push: The term 'web-push' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line: 1 char: 1
- web-push generate-vapid-keys --json
+ CategoryInfo: ObjectNotFound: (web-push: String) [], CommandNotFoundException + FullyQualifiedErrorId: CommandNotFoundException
What's the solution?
web-push isn't part of Powershell instead its an NPM package . If you have nodejs installed try running the command below first:
npm install web-push -g
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.