Using package.json in Webstorm 7
I am new to Webstorm and I just installed Webstorm 7. I notice there is a package.json menu option in the context menu for External Libraries. But mine is disabled. I wanted to use the package.json file on Git for angular-ui. I installed the base angular package from the node button on the main toolbar, but angular-ui is not an option there. Clearly I am missing something here.
Pamela
Please sign in to leave a comment.
Hi Pamela,
sorry, I'm not sure I understand what you are trying to accomplish...
>I notice there is a package.json menu option in the context menu for External Libraries.
New | package.json menu action creates a package.json stub (with 'name' and 'version' properties) in the project root. If you do already have a package.json file in your root folder, this menu item is disabled
>I wanted to use the package.json file on Git for angular-ui.
do you mean that you have downloaded angular-ui from git and added it to your project? What use of this package.json do you try to make? Install all dependencies found in it?
> I installed the base angular package from the node button on the main toolbar, but angular-ui is not an option there.
sure - there is no such node packaged module in the registry. This means that you can't install it using npm
Best regards,
Lena
Thanks, Elena. I also just got introduced to package.json files yesterday. Clearly I need to do more research to understand their purpose.