components icon indicating copy to clipboard operation
components copied to clipboard

problem with npm install --save @angular2-material/{core,button,card}

Open ADominguezes opened this issue 10 years ago • 6 comments

I have problems with the installation.

I write "npm install --save @angular2-material/{core,button,card}" but the respond is:

npm ERR! addLocal Could not install npm ERR! Windows_NT 10.0.10586 npm ERR! argv npm ERR! node v4.4.3 npm ERR! npm v3.8.6 npm ERR! path G:... npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open 'G:...' npm ERR! enoent ENOENT: no such file or directory, open 'G:...' npm ERR! enoent This is most likely not a problem with npm itself npm ERR! enoent and is related to npm not being able to find a file. npm ERR! enoent

npm ERR! Please include the following file with any support request: npm ERR!

What is the problem?

Regards

ADominguezes avatar Jun 22 '16 20:06 ADominguezes

You need to specify which component of angular2-material you'd like to install. For a list of published packages, see this page. So you'd type "npm install @angular2-material/core" for example

wilcraig avatar Jun 22 '16 23:06 wilcraig

Yeah that happened to me too! The instructions show that syntax, but it did not work for me either. You can install each package individually

npm install --save @angular2-material/core npm install --save @angular2-material/button

Or update your package.json file then run npm update.

griffiti avatar Jun 23 '16 03:06 griffiti

ok, thank you.

Solved!!

ADominguezes avatar Jun 23 '16 09:06 ADominguezes

I think this is just a way to present that you can choose any of the component to install and that the beginning (npm install --save @angular2-material/) is always the same: {core,button,toolbar} -> translate to: 'core' or 'button' or 'toolbar'.

Might be good idea to change this in docs to 3 lines to not confuse people.

aquinum6 avatar Jun 23 '16 12:06 aquinum6

Yeah, the {core,button,toolbar} syntax is using shell expansion, which won't work in Windows (until Windows 10 gets that sweet, sweet bash support).

Changing the example in #762

jelbourn avatar Jun 24 '16 21:06 jelbourn

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.