Tag Archives: View-cli3

Cnpm install vuecli error [How to Solve]

cnpm install -g @vue/cli

Cnpm: the file D:\program files\nodejs\cnpm.ps1 cannot be loaded because running scripts is prohibited on this system. For more information, see about in HTTPS:/go.Microsoft
oft.COM/fwlink /?LINKID = 135170_Execution_Policies。
location line: 1 character: 1
+ cnpm install – G @ Vue/cli
+ ~ ~ ~
+ CategoryInfo          : SecurityError: (:) [],PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess

cmd: enter Start-Process powershell -Verb runAs

Continue to re execute set-ExecutionPolicy RemoteSigned. Select Y

Then re-execute cnpm install -g @vue/cli

2021-07-03module parse failed: unexpected token (763:13) you may need an appropriate loader to

After updating the scaffold and creating a new project, NPM run serve reported this error

directly using the method
1. At the beginning of Vue create XXX, check the CSS when you check the pre selection

but this method is not good, sometimes you just don’t want to check what to do.

2. Update the webpack, and update all other updates. This should be ok……