Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] cannot install using npm install --save @ng-select/ng-select #1114

Closed
redcastle9 opened this issue Mar 22, 2019 · 13 comments
Closed

Comments

@redcastle9
Copy link

Please fill below information if issuing a bug report.

Expected behaviour

When running npm install --save @ng-select/ng-select in my project I expect the package to get installed.

Actual behaviour

PS D:\Source\NPAInternal\sprint3\opat-cvg-client> npm install --save @ng-select/ng-select
Unrecognized token in source text.
At line:1 char:20

  • npm install --save <<<< @ng-select/ng-select
    • CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : UnrecognizedToken
      image

More Info

ng-select version: whatever is available right now

I am using npm version 6.4.1, node v10.15.1 and angular version 7.1.4

Is this problem with angular 7? I am unable to rollback to an earlier version of angular.

@redcastle9 redcastle9 changed the title npm install --save @ng-select/ng-select [Question] cannot install using npm install --save @ng-select/ng-select Mar 23, 2019
@jcubic
Copy link

jcubic commented Mar 29, 2019

Try to type this by hand and not copy/paste maybe there are some hidden unicode characters (or space like character) in your command. I've tested both Ubuntu (Windows WSL) and PowerShell and it works fine.

@varnastadeus
Copy link
Member

I agree, there shouldn't be any problems installing it.

@PerttiPalokangas
Copy link

You could try enclosing the text containing at-sign within apostrophes ('), like so:
'@ng-select/ng-select'.
I had similar problem with another npm install command also containing an @-character, and it helped in that case.

@endresol
Copy link

can it be related to a 32 bit version? I got this same problem on an old laptop running windows 7

@toner728
Copy link

I had the same issue and after I added a ' before and after the statement it worked no problem.. e.g. this is the shell command for creating a microsoft sharepoint webpart. yo 'microsoft/sharepoint'

@PabsModeG
Copy link

Unrecognized token in source text.
At line:1 char:13

  • npm install

<<<< @material-ui/core

+ CategoryInfo          : ParserError: (:) [], P 

arentContainsErrorRecordException
+ FullyQualifiedErrorId : UnrecognizedToken

when I try to install Material UI

@al-freezy
Copy link

Try using external Terminal (CMD) ,It worked like a charm.

@chetanchandel31
Copy link

when I try to install Material UI

Was just facing same issue, added ' like others suggested and it worked.

Had to do npm install '@material-ui/core' instead of npm install @material-ui/core.

@faicalyahia
Copy link

npm install '@material-ui/core' this resolved the problem. thank you chetanchandel31

@VeNom748
Copy link

when I try to install Material UI

Was just facing same issue, added ' like others suggested and it worked.

Had to do npm install '@material-ui/core' instead of npm install @material-ui/core.

Thanks chetanchandel31 it's Working

@faicalyahia
Copy link

faicalyahia commented Jun 13, 2021 via email

@aniketsingh30
Copy link

Thanks enclosing within single code is working.
npm install -g '@aws-amplify/cli'

@DR0N3-OFC
Copy link

DR0N3-OFC commented Feb 9, 2022

Try using external Terminal (CMD) ,It worked like a charm.

Thank you, bro. I was trying to fix it for hours and it didn't even come to my mind, either than my CMD was opened lol. BTW thank you, bro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests