Skip to content
Snippets Groups Projects
Commit 79a0f061 authored by Michael Lumish's avatar Michael Lumish
Browse files

Properly delete Node OpenSSL headers after downloading them

parent d445fc01
No related branches found
No related tags found
No related merge requests found
......@@ -27,4 +27,12 @@
@rem (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
@rem OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
npm install --build-from-source
\ No newline at end of file
call npm install --build-from-source
@rem delete the redundant openssl headers
for /f "delims=v" %%v in ('node --version') do (
rmdir "%HOMEDRIVE%%HOMEPATH%\.node-gyp\%%v\include\node\openssl" /S /Q
)
@rem rebuild, because it probably failed the first time
call npm install --build-from-source
\ No newline at end of file
......@@ -28,12 +28,5 @@
@rem OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@rem Expire cache after 1 week
npm update --cache-min 604800
call npm update --cache-min 604800
npm install node-gyp-install
.\node_modules\.bin\node-gyp-install.cmd
@rem delete the redundant openssl headers
for /f "delims=v" %%v in ('node --version') do (
rmdir "%HOMEDRIVE%%HOMEPATH%\.node-gyp\%%v\include\node\openssl" /S /Q
)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment