Giter VIP home page Giter VIP logo

Comments (12)

pmq20 avatar pmq20 commented on August 20, 2024

@Kenneth111 No you do not have to install vs 2017. VS 2015 still works.

vcbuild.bat should be part of the compiler, not from the environement. Could you try run it with the option --clean-tmpdir? I am guessing that the tmpdir contains some incomplete source code.

from node-packer.

And-re avatar And-re commented on August 20, 2024

@Kenneth111 @pmq20 I had the same error and the only way to make it work for me was to download node-compiler from github (I guess downloading Node.js from github should also work) and adding the folder with vcbuild.bat to the PATH env variable.

from node-packer.

mudcrab avatar mudcrab commented on August 20, 2024

I installed all the dependencies listed in the readme, but had the same error.
Solved it by installing: https://github.com/felixrieseberg/windows-build-tools

from node-packer.

Kenneth111 avatar Kenneth111 commented on August 20, 2024

I have solved this problem using nodec v0.9.6, nodejs v7.10.0 and running nodec with the option --clean-tmpdir as @pmq20 suggested. However, the same error still appears if I use nodec v1.0 and nodejs 8,0.

from node-packer.

pmq20 avatar pmq20 commented on August 20, 2024

@Kenneth111 What if you use nodec v1.0 and nodejs 8,0 and again with option --clean-tmpdir?

from node-packer.

Kenneth111 avatar Kenneth111 commented on August 20, 2024

@pmq20 I have tried. It doesn't work.

from node-packer.

pmq20 avatar pmq20 commented on August 20, 2024

@Kenneth111 Could you give me the full log to inspect the problem?

from node-packer.

firrae avatar firrae commented on August 20, 2024

I am getting this error as well. I am using Node v8.1.1 and Nodec 1.1.0. I have installed windows-build-tools as @mudcrab pointed out and restarted the box I was using but still ended up with Failed running ["call vcbuild.bat x64"]. I am about to try @And-re pointed out next I guess.

from node-packer.

firrae avatar firrae commented on August 20, 2024

UPDATE: After noticing I had a weird Python error in the log as well I realised that windows-build-tools don't automatically put Python in the env so once I flagged that and reinstalled, it seems to be working now. We'll see once the build is done!

from node-packer.

firrae avatar firrae commented on August 20, 2024

Hm, I am getting this again now, even with the --clean-tmpdir flag. I had thought it was due to my memory but after increasing it on my Windows build server to 16GB it's still throwing this without and noticeable error.

Any idea on how to fix this?

To note, I do not have full VS installed, I only used the npm package windows-build-tools.

from node-packer.

firrae avatar firrae commented on August 20, 2024

After adding RAM it seems to have solved the problem. I needed 16GB of actual RAM and 8GB of virtual memory to build my project, it also took about 30 minutes, but it all works! πŸ˜„

from node-packer.

pmq20 avatar pmq20 commented on August 20, 2024

@firrae Congratulations

from node-packer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.