S
S
sumyuga2014-07-31 11:57:11
npm
sumyuga, 2014-07-31 11:57:11

How to see installed packages in npm?

I have MacOS system, node is installed without npm module, npm itself is installed separately. I decided to update npm and after that it stopped seeing installed packages. I suspect that the path or symlinks have broken, I just don’t understand this well yet, so I want to turn to the public for help.
npm root command shows
/Users/username/node_modules
And if npm root -g
/usr/local/lib/node_modules
But when I want to check the list npm ls
/Users/username
└── (empty)
Packages are not seen as previously installed (before update), and again (after the update).
How to return everything back to normal?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Bakhmurov, 2015-07-11
@webdot

Perhaps the packages were globally installed, then npm ls -g

S
Sergey Krasnodemsky, 2014-07-31
@Prognosticator

npm cache clean -f
npm install -g n
n stable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question