Comments (20)
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.
from opensc2k.
Please read the README.
Its there for a reason.
from opensc2k.
Well I did. And it doesn't work...
from opensc2k.
See issue #4 for solution.
from opensc2k.
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.
Full log here :
https://pastebin.com/B6r1AAJG
(can't copy here because of simple quote breaking style)
Npm version : 5.6.0
from opensc2k.
It looks like you missed a step between npm install and npm start.
node_modules/.bin/electron-rebuild -f -w better-sqlite3
from opensc2k.
from opensc2k.
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.
node_modules exist, and I use Cmder with git bash
from opensc2k.
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.
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.
Look at my pastebin, I use backslash..
from opensc2k.
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.
https://pastebin.com/w08J83WF Again the error..
from opensc2k.
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.
Curious. I wonder why I haven't had that same requirement for the two Windows installs I have done...
from opensc2k.
@cdubz Maybe your node installation was already configured to use that version of msvs - hard to tell.
from opensc2k.
@vasilvestre @rage8885 This issue can be closed now.
from opensc2k.
Related Issues (20)
- Switch to PhaserIO HOT 9
- The module '../better_sqlite3.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 59. This version of Node.js requires NODE_MODULE_VERSION 57. HOT 2
- Switch to Sequelize or other ORM HOT 5
- macOS: libtool: unrecognized option `-static' HOT 9
- Port to web HOT 8
- This is awesome!
- :( did not work/ atttached log HOT 1
- Fixed typo in the readme HOT 2
- error [email protected]: The engine "node" is incompatible with this module. Expected version ">=5.10.0". HOT 2
- Hosted deployment HOT 4
- Cameras.Controls.Smoothed removed in Phaser 3.10.1 HOT 1
- 3D rendered artwork HOT 15
- Windows instructions? HOT 1
- Package "pngjs" refers to a non-existing file HOT 2
- This doesn't work anymore HOT 11
- `npm i` not working from mac
- It don’t worrrrrrrrrrk😫 HOT 1
- Is this (at least planned to be) actively maintained? HOT 3
- I have an idea
- rage8885 does not exist HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opensc2k.