發表文章

目前顯示的是 2月, 2015的文章

NPM Usage

Install a package: node install express https://docs.npmjs.com/cli/install Docs for a package: npm docs express https://docs.npmjs.com/cli/docs Browse an installed package: npm explore express https://docs.npmjs.com/cli/explore List installed packages: npm list https://docs.npmjs.com/cli/lshttps://docs.npmjs.com/cli/ls Uninstall a package: npm uninstall express https://docs.npmjs.com/cli/uninstall Reference: https://docs.npmjs.com/

Using NPM behind proxy

Config NPM behind proxy by config  and proxy or https-proxy : npm config set proxy http://proxy.company.com:8080 npm config set https-proxy http://proxy.company.com:8080 If you want to specify the credential, they can passed by the following URL syntax: http:// username:password @proxy.company.com:8080

NPM Error : ENOENT, stat'C:\Users\username\AppData\Roaming\npm'

Error prompted when using NPM : Error: ENOENT, stat'C:\Users\username\AppData\Roaming\npm' Manually creating a folder named 'npm' in the displayed path fixed the problem.