Skip to main content

3 posts tagged with "install"

View All Tags

· One min read
Hreniuc Cristian-Alexandru

Sometimes VSCodium search functionality for extensions doesn't work, or doesn't return the desired results. So to fix this I had to look for an alternative:

Download the extension from VSCode marketplace, it'll be a .vsix file, then do like the image below.

Source: https://github.com/microsoft/vscode/issues/108147#issuecomment-704723949

· One min read
Hreniuc Cristian-Alexandru

Install nodejs in a specific path:

echo 'export PATH=$HOME/programs/bin:$PATH' >> ~/.bashrc
# the `programs` dir should exist, the `bin` will be
# created if it doesn't exist, when you will be running `./configure`
source ~/.bashrc
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=$HOME/programs # your prefix
make install# --j8
# The `make install` step takes a lot, you should do it on multiple threads using --j option

Install npm on specific path:

wget https://registry.npmjs.org/npm/-/npm-5.8.0.tgz # specify what version you want 
tar xzf npm-5.8.0.tgz
cd package/
node bin/npm-cli.js install -gf --prefix=~/programs/ ../npm-5.8.0.tgz
# use the prefix where node was installed

Test them both:

node -v
#
npm -v