npm config ls
npm config get https-proxy
npm config set https-proxy [url:port]
vim ~/.npmrc
proxy=http://user:[email protected]:8080/
https-proxy=http://user:[email protected]:8080/
;prefix=~/.npm-global
npm bin -g
# create new folder where node will place all packages
mkdir ~/.npm-global
# Configure npm to use new folder
npm config set prefix '~/.npm-global'
# update your settings in ```vim ~/.profile```
export PATH=~/.npm-global/bin:$PATH
npm list -g --depth=0
# npm search @angular
npm uninstall -g @angular/cli
npm cache clear --force
npm install -g @angular/cli
npm show styled-components@* version
npm install [email protected]
# if you don't know certain version
npm install styled-components@^3.0.0
npm install
npm start
npm start --prefix /path/to/api "special_app_marker_for_ps_aux"
- package.json solution
"scripts": {"start": "PORT=3310 node ./bin/www"},
- npm solution
PORT=$PORT npm start --prefix $PROJECT_HOME/api
npm run eject
# config/webpack.config.dev.js
# config/webpack.config.prod.js
# config/webpackDevServer.config.js
# config/env.js
# config/paths.js
# config/polyfills.js
yarn package manager
yarn config list
npx create-next-app my-app
start nextjs
npm run-script build
npm run-script start
# or ( the same for debug )
node server.js