Answer the question
In order to leave comments, you need to log in
How to get the list of installed modules on node.js?
I want to know the list of installed modules on node.js, I ask npm list -g --depth=0
Returns this:
C:\Users\username\AppData\Roaming\npm
+-- error: ENOENT: no such file or directory, open 'C:\Users\username\AppData\Roaming\npm\node_modules\History.md\package.json
+-- error: ENOENT: no such file or directory, open 'C:\Users\username\AppData\Roaming\npm\node_modules\index.js\package.json
+-- error: ENOENT: no such file or directory, open 'C:\Users\username\AppData\Roaming\npm\node_modules\lib\package.json
+-- error: ENOENT: no such file or directory, open 'C:\Users\username\AppData\Roaming\npm\node_modules\LICENSE\package.json
+-- error: ENOENT: no such file or directory, open 'C:\Users\username\AppData\Roaming\npm\node_modules\package.json\package.json
`-- error: ENOENT: no such file or directory, open 'C:\Users\username\AppData\Roaming\npm\node_modules\Readme.md\package.json
npm ERR! error in C:\Users\username\AppData\Roaming\npm\node_modules\History.md: ENOENT: no such file or directory, open 'C:\Users\username\AppData\Roaming\npm\node_modules\History.md\package.json'
npm ERR! error in C:\Users\username\AppData\Roaming\npm\node_modules\LICENSE: ENOENT: no such file or directory, open 'C:\Users\username\AppData\Roaming\npm\node_modules\LICENSE\package.json'
npm ERR! error in C:\Users\username\AppData\Roaming\npm\node_modules\Readme.md: ENOENT: no such file or directory, open 'C:\Users\username\AppData\Roaming\npm\node_modules\Readme.md\package.json'
npm ERR! error in C:\Users\username\AppData\Roaming\npm\node_modules\index.js: ENOENT: no such file or directory, open 'C:\Users\username\AppData\Roaming\npm\node_modules\index.js\package.json'
npm ERR! error in C:\Users\username\AppData\Roaming\npm\node_modules\lib: ENOENT: no such file or directory, open 'C:\Users\username\AppData\Roaming\npm\node_modules\lib\package.json'
npm ERR! error in C:\Users\username\AppData\Roaming\npm\node_modules\package.json: ENOENT: no such file or directory, open 'C:\Users\username\AppData\Roaming\npm\node_modules\package.json\package.json'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question