Troubleshooting when installing the Vue scaffolding CLI using NPM
Recently prepared to use NPM to install Vue learning, by watching Vue's introduction, it can be seen that Vue is similar to the recently popular MVVM framework Angular.js, which has a relatively steep learning curve, so that you can learn vue.js first with insufficient time.
Using NPM to install the vue.js times is wrong, the error message is:
C:\USERS\KOUOK>CNPM Install–global VUE-CLI
Downloading vue-cli to C:\Program files\nodejs\node_modules\vue-cli_tmp
Error:EPERM:operation not permitted, mkdir ' C:\Program files\nodejs\node_modules\vue-cli_tmp '
At Error (native)
This reason, mainly the C disk write permission is not enough, you can run as an administrator cmd name (method: To find C:\Windows\System32\cmd.exe through the directory, and then right-click, appear options, choose to run as an administrator)
Then enter the installation command again: NPM Install–global VUE-CLI can be installed successfully. By entering Vue, the installation succeeds if it can be named.
Reprint: http://www.iplayseo.com/wrong-with-vue-js-cli-install/Author: Kouok