Tools Nodejs

2021-9-4 Dev
  • Nodejs
Less than 1 minute

# Tools Nodejs

# NPM

# Tips

Configurer le proxy sur NPM

npm config set proxy http://login:pwd@proxys:80
npm config set https-proxy http://login:pwd@proxys:80
1
2

# Outils pour Windows

npm install --global windows-build-tools
1

Installe les outils suivant :

  • Visual C++ Compilers (targeting x86, X64 and ARM)
  • Visual C++ headers & libraries (CRT & STL)
  • Visual C++ build scripts (targeting Windows desktop)
  • Microsoft Build Tools 2015 (MSBuild)
  • Windows SDK 8.1 (optional, on by default)
  • Windows SDK 10 (optional, off by default)
  • ATL and MFC (optional, off by default)
  • C++ Build tools specific command prompts

https://www.npmjs.com/package/windows-build-tools (opens new window)

# NVM

# Tutos

# NVM avec ShellFish

function nvm
      bass source ~/.nvm/nvm.sh ';' nvm $argv
end
1
2
3

https://github.com/creationix/nvm/issues/303#issuecomment-121086278 (opens new window)

# Installation

# Debian

Installer NodeJS

sudo apt-get install -y nodejs

node -v

sudo npm install npm --global

# u install

npm install -g n

n latest

curl -0 -L https://npmjs.com/install.sh | sudo sh
1
2
3
4
5
6
7
8
9
10
11
12
13

Links :

# Tooling

# Eslint

Disable rules

// eslint-disable-next-line consistent-return

/* eslint array-callback-return: "off" */

/* eslint no-console: "off", consistent-return: "off", prefer-promise-reject-errors: "off" */
1
2
3
4
5