-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Can't build node-sass behind a proxy #2939
Comments
|
@descl to resolve this issue I had to follow the instructions as mentioned in the trouble shooting guide and also run my project on node version 14. i hope this helps. |
In fact, we are trying to build our project behind a proxy and behind nexus from docker. We do not have internet. The command is as follows: docker build The dockerfile is as follows: ARG REGISTRY COPY ./client /var/opt/client WORKDIREWORKDIR /var/opt/client ARG NPM_PROXY= The error we have during the build is already the same as above. |
If this is a problem, it is an issue in node-gyp. You can always download and install the header files and have things working. (OP says they are running v12.16.1 but node-gyp tries to download for v13.8.0 |
Hello we are trying to build our project behind a proxy and we think that
npm set dist-url ${NODEJS_PROXY}
is not taken in consideration during the compilation of node-sass? it always tries to access internet in order to download the dependenciesThanks, Christophe
The error we have during the build:
Some datas about our version:
npm -v
):6.13.4node -v
):v12.16.1node -p process.versions
):{ node: '12.16.1', v8: '7.8.279.23-node.31', uv: '1.34.0', zlib: '1.2.11', brotli: '1.0.7', ares: '1.15.0', modules: '72', nghttp2: '1.40.0', napi: '5', llhttp: '2.0.4', http_parser: '2.9.3', openssl: '1.1.1d', cldr: '35.1', icu: '64.2', tz: '2019c', unicode: '12.1' }
node -p process.platform
): linuxnode -p process.arch
): x64node -p "require('node-sass').info"
):Error: Cannot find module 'node-sass'
npm ls node-sass
): ***@6.2.6 /var/opt/client-- UNMET DEPENDENCY node-sass@4.12.0
The text was updated successfully, but these errors were encountered: