Giter Site home page Giter Site logo

Comments (20)

vasilvestre avatar vasilvestre commented on April 29, 2024 2

I FIXED IT !
Thanks to chjj/pty.js#60

open up a new cmd as administrator and run this command: npm install --global --production windows-build-tools then npm config set msvs_version 2015 --global close all instances of shell/cmd, reopen a cmd (regular this time, non-administrator) return to your directory where you are trying to run npm install and run it again

I also installed https://www.microsoft.com/en-us/download/details.aspx?id=40760 but I don't think it helped.
Add to README that windows users (at least) need to restart a cmd without admin to rebuild :)

from opensc2k.

cursorial avatar cursorial commented on April 29, 2024

#14

from opensc2k.

cursorial avatar cursorial commented on April 29, 2024

Please read the README.

Its there for a reason.

from opensc2k.

vasilvestre avatar vasilvestre commented on April 29, 2024

Well I did. And it doesn't work...

from opensc2k.

cursorial avatar cursorial commented on April 29, 2024

See issue #4 for solution.

from opensc2k.

cursorial avatar cursorial commented on April 29, 2024

What output do you get after running Step 5. Can you try removing the OpenSC2K directory, cloning again and then running the commands and posting the output of each? Maybe something's going wrong during installation that we haven't seen yet.

from opensc2k.

vasilvestre avatar vasilvestre commented on April 29, 2024

Full log here :
https://pastebin.com/B6r1AAJG

(can't copy here because of simple quote breaking style)

Npm version : 5.6.0

from opensc2k.

cursorial avatar cursorial commented on April 29, 2024

It looks like you missed a step between npm install and npm start.

node_modules/.bin/electron-rebuild -f -w better-sqlite3

from opensc2k.

vasilvestre avatar vasilvestre commented on April 29, 2024

https://pastebin.com/2qpq7Xzr

from opensc2k.

cursorial avatar cursorial commented on April 29, 2024

Does the node_modules/.bin directory exist?

Try

node_modules\.bin\electron-rebuild -f -w better-sqlite3

It looks like you're having a syntax error when you type it into CMD. If the above command doesn't work try using Git Bash (should have been installed when you installed git on your computer, it's a standalone executable that gives you a bash prompt rather than a windows prompt)

from opensc2k.

vasilvestre avatar vasilvestre commented on April 29, 2024

node_modules exist, and I use Cmder with git bash

from opensc2k.

cursorial avatar cursorial commented on April 29, 2024

Git bash wouldn't respond with that type of error - it would simply say

$ node_modules
bash: node_modules: command not found

You aren't using the right type of slashes, you are using forward slash, not back slash (windows FS uses back slashes). The prompt thinks you are trying to execute something called node_modules, try replacing all forward slashes with back slashes.

from opensc2k.

cdubz avatar cdubz commented on April 29, 2024

Note the directory separator with this command. On Windows it needs to be as @cursorial provides it above (\). Otherwise you’ll get the “node_modules unknown” error because Windows thinks you are asking for an executable as opposed to a folder.

I was trying not to be too verbose with the install instructions in the README, but perhaps there should be a separate list of steps for Windows to avoid this confusion...

from opensc2k.

vasilvestre avatar vasilvestre commented on April 29, 2024

Look at my pastebin, I use backslash..

from opensc2k.

cdubz avatar cdubz commented on April 29, 2024

This line makes it sound like the Windows build tools are not being found:

MSBUILD : error MSB4132: La version des outils "2.0" n'est pas reconnue. Les versions disponibles sont "14.0", "4.0".

Perhaps wipe out node_modules and run through the install steps again? I think I had a similar issue when I ran a failed npm install the very first time.

from opensc2k.

vasilvestre avatar vasilvestre commented on April 29, 2024

https://pastebin.com/w08J83WF Again the error..

from opensc2k.

cursorial avatar cursorial commented on April 29, 2024

I was just about to comment with that command - well done.

This should be added to the README after where windows-build-tools is installed

  • Run this

      npm config set msvs_version 2015 --global
    
  • Close all instances of shell/cmd, reopen a CMD (non-admin), return to the OpenSC2K directory and run the following

      npm install
    

from opensc2k.

cdubz avatar cdubz commented on April 29, 2024

Curious. I wonder why I haven't had that same requirement for the two Windows installs I have done...

from opensc2k.

cursorial avatar cursorial commented on April 29, 2024

@cdubz Maybe your node installation was already configured to use that version of msvs - hard to tell.

from opensc2k.

cursorial avatar cursorial commented on April 29, 2024

@vasilvestre @rage8885 This issue can be closed now.

from opensc2k.

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.