Hi whenever I try to install or run a command globally using npm my terminal always displays an error of the following:
Does anyone know why? I was trying to install ionic earlier using the $ npm install -g @ionic/cli command but it wasn't working but as soon as I removed the -g it seemed to download perfectly, I would like to know the cause.
Thanks,
If you are on Linux or MacOS try:
$ sudo npm install -g @ionic/cli
Instead of:
$ npm install -g @ionic/cli
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.