Amur
Amur
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Amur on 11/22/2023 in #questions
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
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
➜ 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 ? 🤔
2 replies
TTCTheo's Typesafe Cult
Created by Amur on 11/6/2023 in #questions
Can npx execute packages without having the package installed?
In a lot of places i see people saying that npx can execute packages without instlalling them but whenever i try to exeute a package i get Need to install the following packages. example npx cowsay 'wow'
Need to install the following packages:
cowsay@1.5.0
Ok to proceed? (y)
Need to install the following packages:
cowsay@1.5.0
Ok to proceed? (y)
3 replies