I'm trying to build an angular project with yarn, but I always receive some errors.
Build failed with error code: 1"
success Saved lockfile.
Done in 72.30s.
Actually, this error occurs because the node-gyp fails:
c:\temp\helloworld>node-gyp configure
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@8.12.0 | win32 | x64
gyp http GET https://nodejs.org/download/release/v8.12.0/node-v8.12.0-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v8.12.0/node-v8.12.0-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v8.12.0/SHASUMS256.txt
gyp http GET https://nodejs.org/download/release/v8.12.0/win-x64/node.lib
gyp http GET https://nodejs.org/download/release/v8.12.0/win-x86/node.lib
gyp http 200 https://nodejs.org/download/release/v8.12.0/SHASUMS256.txt
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: read ECONNRESET
gyp ERR! stack at TLSWrap.onread (net.js:622:25)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\matyig\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure"
gyp ERR! cwd c:\temp\helloworld
gyp ERR! node -v v8.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
c:\temp\helloworld>
any idea?
Node-gyp is executing scripts by downloading them. It seems the internet connection is not stable which is why the script download is being stopped in between. SOme files are really large and needs to be downloaded like SHASUMS256.txt. Please try to run the command on a stable internet connection.