0
Good night to you all.
This error occurs especially with CLI dependencies (such as with Vue.js, too).
Follows the error presented
PS Z:\projetos\LABORATORIO DE EXPERIMENTOS\Vue\VueJS> npm i -g @angular/cli
Token não reconhecido no texto de origem.
Em linha:1 caractere:10
+ npm i -g <<<< @angular/cli
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnrecognizedToken
I already updated npm suspecting it to be the version by:
npm install npm@latest -g
but even with the updated version, the error persists. I deeply appreciate your help.
Update: I just tried "npm update -g" to update the global dependencies. The error didn’t even care about it and it’s still firm and strong here.
If you escape with double quotes does not work? I imagined this and confirmed in some surveys. It may be that your cli is understanding some symbol as token, and the message makes sense.
– Raizant
@Raizant did not understand very well...pardon. However, I tried to double quote here on "@angular/cli" and "npm i -g @angular/cli" to see if it was something about that, and unfortunately it wasn’t. (I’m new to the programming world, so I’ll extend my apologies in case I’m committing a tremendous noodle)
– Nivs Van
npm i -g "@angular/cli"
are you using powershell? For it may be that it is recognizing @ or / as a reserved word– Raizant