Small knowledge, big challenge! This article is participating in the creation activity of “Essential Tips for Programmers”.
First mistake
1, when vUE scaffolding new project, error
Command vue init requires a global addon to be installed.
Please run npm i -g @vue/cli-init and try again.
Copy the code
At this point, reinstall NPM i-g@vue/CLI-init as prompted above.
NPM i-g@vue /cli-init also fails
Unrecognized markup exists in source text. 1 character: 10 + NPM I -g <<<< @vue/cli-init + CategoryInfo: ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : UnrecognizedTokenCopy the code
Then replace the install command withnpm i -g "@vue/cli-init"
, with double quotation marks
Reinstall it.
Now you can create the project
Second mistake
This error was reported at creation time
@[TOC](PS C:\Users\Administrator\Desktop\test> vue init webpack test cannot load file D:\node.js\node_global\vue.ps1, Script execution is prohibited on this system. For more information, see “get-help about_signing”. Position line :1 character: 4
- vue <<<< init webpack test
- CategoryInfo : NotSpecified: (:) [], PSSecurityException
- FullyQualifiedErrorId: RuntimeException
The solution is to find: D:\node.js\node_global\vue.ps1, and delete the file
Third mistake
[email protected] installation failed when creating vue project
We should install it separately at this point
npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
Copy the code