npm modules installed on a nodejs application are not being listed
Issue
npm modules installed on a nodejs application are not shown at :
npm ls
or
npm ls --json
- Create a nodejs application
- add a dependency/dependencies in package.json. For eg :
"dependencies": {
"yo": "1.x.x",
"compass": "0.x",
"bower": "1.x"
},
-
git add>commit>push, the output shows npm modules are installed.
-
ssh to the application and run 'npm ls --json' or 'npm ls' it does not return the installed npm modules.
Environment
-
OpenShift Enterprise (OSE)
- 1.x
- 2.0
-
OpenShift Online (OSO)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.