Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
1 reply
Amur

Can't delete globally installed npm package

i want to delete the serverless.js npm package that's installed globally
if i run serverless --version i see that there is a version installed globally
serverless --version            
Running "serverless" from node_modules
Framework Core: 3.37.0 (local) 3.22.0 (global)
Plugin: 7.2.0
SDK: 4.5.1



if i run npm ls -g it's not in the list
➜  ttttttttt git:(main) ✗ npm ls -g
/Users/me/Library/Application Support/fnm/node-versions/v18.17.1/installation/lib
├── corepack@0.18.0
├── node-red@3.1.0
└── npm@9.6.7



I switched to all installed node versions, checked npm ls -g for all but serverless wasn't in the list for any of them

I'm thinking, maybe i installed serverless.js globally when i was still using nvm instead of fnm
Is there a way to check the globally installed npm packages that were installed when i was using nvm ? 🤔
Was this page helpful?