Neptune DXP Documentation
Add npm modules to your project
Running npm install in the terminal will not work since the terminal is only
used to run Git commands once you establish a connection to your repository.
Install all npm modules from the package.json file
-
Select App modules
-
Select the Install npm modules
This will install all npm modules that are referred in the package.json file.
Update npm modules
-
Select App modules
-
Select Update npm modules
This will only update the npm modules that have changed in the package.json file.
Add npm modules from npmjs.com
-
Select App modules
-
Select Add npm module
-
Search and install your desired npm module
Use a module in a script
To include the module in a script simple place at the top of your script:
// A JavaScript date library for parsing, validating, manipulating, and formatting dates.
import moment from 'moment';