package.json

Answered

If I start an empty project in IntelliJ IDEA how do I install package.json? I have nodeJS up and running. 

Many thanks,

Charles

3 comments

Not sure what you mean by installing it... Please try File/New/package.json File - this action creates a basic package.json file. You can then add dependencies to it and use 'Run npm install' in its right-click menu to install packages. Note that you need to have NodeJS plugin installed to get this working: Settings | Plugins, Install JetBrains Plugin..., type 'NodeJS' to quickly locate it

2

Elena:

Thank you for your response. I do have the NodeJS plugin installed. However, when I do File - New package.json is not one of the options. I am not sure why. 

Many thanks,

Charles

0

may depend on the selection. Also, action is not available if package.json already exists in the target directory

0

Please sign in to leave a comment.