Posts

Showing posts with the label Npm Install

After `npm Install` An Error About A Syntax Error In Python Appears?

Answer : Try this in cmd administrator (or Windows Powershell Administrator if cmd freezes) npm install --global windows-build-tools In case the answer(s) provided doesn't work for you, here are some tips you can follow in order to mitigate related problems for windows OS. NOTE: If you already tried installing the build tools via npm command with no success, it is probably a good idea to delete everything before applying any of the tips below. You can find the build tools here and just delete the folders (but I don't know if they are installed somewhere else): C:\Users\'yourUser'\.windows-build-tools\ C:\Users\'yourUser'\AppData\Roaming\npm\node_modules\windows-build-tools After ensuring that the folders specified above are deleted, then you can try applying any of the following tips. First Tip : Run CMD or PowerShell as Administrator Install node-gyp using the following command: npm install -g node-gyp Download and install windows b...

407 Authentication Required Npm

Answer : I recommend reading through this article to configure the proxy for npm. http://wil.boayue.com/blog/2013/06/14/using-npm-behind-a-proxy/ npm config set proxy http://proxy.company.com:proxyport npm config set http-proxy http://proxy.company.com:proxyport npm config set https-proxy http://proxy.company.com:proxyport Hope this is useful for you! Usually, when you are behind a corporate proxy, it is needed to add the domain where you are at. Given that also the characters should be URL encoded, it would look like: https://domain%5Cusername:password@proxy:port We should add proxy with username and password to avoid this error. For example: username: admin password: admin123 proxy: 172.10.3.21 port: 3128 npm config set proxy http://admin:admin123@172.10.3.21:3128 npm config set https-proxy http://admin:admin123@172.10.3.21:3128