Open hoangdt9 opened 2 years ago
Another way to set a registry is to add a .npmrc file in your project's root directory https://github.com/eirslett/frontend-maven-plugin#readme It doesn't respect the one in your home directory, you need to copy it to your project
Hello guys,
I'm working on Maven and npm with different proxy for both. I would like to disable Maven proxy and using npm proxy from (.npmrc). I tried setup in pom.xml followed as https://github.com/eirslett/frontend-maven-plugin#proxy-settings but when download npm it's always refer Maven proxy ([INFO] Downloading via proxy http{protocol='http', host='70.10.15.10', port=8080, nonProxyHosts='localhost|70.*|nexus.sdsdev.co.kr'}).
Thank you!
Maven proxy: (settings.xml)
npm proxy: (.npmrc) strict-ssl=false proxy=http://182.192.254.44:8080/ https-proxy=http://182.192.254.44:8080/ registry=https://registry.npmjs.org/ sass_binary_site=http://182.192.254.44:8080/repository/github/sass/node-sass/releases/download noproxy=nexus.sdsdev.co.kr,http://70.121.224.52:8081
pom.xml