eirslett / frontend-maven-plugin

"Maven-node-grunt-gulp-npm-node-plugin to end all maven-node-grunt-gulp-npm-plugins." A Maven plugin that downloads/installs Node and NPM locally, runs NPM install, Grunt, Gulp and/or Karma.
Apache License 2.0
4.2k stars 868 forks source link

npm ERR during downloading node-v16.16.0-headers.tar.gz #1145

Open schernushenko opened 1 month ago

schernushenko commented 1 month ago

Hello ! I'm using frontend-maven-plugin (version 1.10.0) to compile Camunda cockpit plugin implemented on ReactJS

Access to most external resources including nodejs.org are closed in our organization and during compilation I faced with error below. Could you please suggest me approach to work around the problem and compile plugin ?

[17:46:03,235] [INFO] npm ERR! gyp verb command install [ '16.16.0' ] [17:46:03,235] [INFO] npm ERR! gyp verb install input version string "16.16.0" [17:46:03,235] [INFO] npm ERR! gyp verb install installing version: 16.16.0 [17:46:03,235] [INFO] npm ERR! gyp verb install --ensure was passed, so won't reinstall if already installed [17:46:03,235] [INFO] npm ERR! gyp verb install version not already installed, continuing with install 16.16.0 [17:46:03,235] [INFO] npm ERR! gyp verb ensuring nodedir is created /root/.cache/node-gyp/16.16.0 [17:46:03,235] [INFO] npm ERR! gyp verb created nodedir /root/.cache [17:46:03,235] [INFO] npm ERR! gyp http GET https://nodejs.org/download/release/v16.16.0/node-v16.16.0-headers.tar.gz [17:46:03,235] [INFO] npm ERR! gyp WARN install got an error, rolling back install [17:46:03,235] [INFO] npm ERR! gyp verb command remove [ '16.16.0' ] [17:46:03,235] [INFO] npm ERR! gyp verb remove using node-gyp dir: /root/.cache/node-gyp [17:46:03,235] [INFO] npm ERR! gyp verb remove removing target version: 16.16.0 [17:46:03,235] [INFO] npm ERR! gyp verb remove removing development files for version: 16.16.0 [17:46:03,235] [INFO] npm ERR! gyp ERR! configure error [17:46:03,235] [INFO] npm ERR! gyp ERR! stack Error: connect ETIMEDOUT 104.20.23.46:443 [17:46:03,235] [INFO] npm ERR! gyp ERR! stack at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) [17:46:03,235] [INFO] npm ERR! gyp ERR! System Linux 3.10.0-1160.el7.x86_64

Thank you in advance.