Comments (9)
Remove your directory and then follow the instructions from the README directly - you missed a few steps:
OS X
git clone https://github.com/rage8885/OpenSC2K
or download this repositorycd OpenSC2K
npm install
downloads and installs the dependanciesnode_modules/.bin/electron-rebuild -f -w better-sqlite3
rebuilds Electron with better-sqlite3 bindingsnpm start
to run
from opensc2k.
I've just noticed that it failed on the npm install
step, sorry.
Could you try which libtool
and post the output?
from opensc2k.
It's a local install of libtool
PROMPT> which libtool
/Users/neoneye/bin/libtool
PROMPT> ls -la /Users/neoneye/bin/libtool
lrwxr-xr-x 1 neoneye staff 27 Dec 10 2013 /Users/neoneye/bin/libtool -> ../stow/libtool/bin/libtool
I can try install a newer version
from opensc2k.
Try alias libtool='usr/bin/libtool'
and then try to remove OpenSC2K dir, clone again and try to reinstall.
from opensc2k.
Creating an alias for libtool didn't work. Wild speculation. I suspect that NPM doesn't use bash's aliases. I ended up renamed my local libtool
, so that the system wide /usr/bin/libtool
is being used. I'm not sure what version of libtool
it is, since it's provided by Xcode/clang. It takes no --version
parameter.
Now the OpenSC2K compiles and installs.
However running npm start
does not work.
abcdef:OpenSC2K neoneye$ npm install
> [email protected] install /Users/neoneye/git/OpenSC2K/node_modules/integer
> node tools/install
CXX(target) Release/obj.target/integer/src/integer.o
SOLINK_MODULE(target) Release/integer.node
> [email protected] install /Users/neoneye/git/OpenSC2K/node_modules/better-sqlite3
> node deps/install
==> cwd: /Users/neoneye/git/OpenSC2K/node_modules/better-sqlite3
==> /Users/neoneye/git/OpenSC2K/node_modules/lzz-gyp/lzz-compiled/osx -hx hpp -sx cpp -k BETTER_SQLITE3 -d -hl -sl -e ./src/better_sqlite3.lzz
==> cwd: /Users/neoneye/git/OpenSC2K/node_modules/better-sqlite3
==> node-gyp rebuild
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3210000/sqlite3.c
TOUCH Release/obj.target/deps/action_before_build.stamp
CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3210000/sqlite3.o
LIBTOOL-STATIC Release/sqlite3.a
CXX(target) Release/obj.target/better_sqlite3/src/better_sqlite3.o
SOLINK_MODULE(target) Release/better_sqlite3.node
CC(target) Release/obj.target/test_extension/deps/test_extension.o
SOLINK_MODULE(target) Release/test_extension.node
added 4 packages in 32.698s
abcdef:OpenSC2K neoneye$ node_modules/.bin/electron-rebuild -f -w better-sqlite3
✔ Rebuild Complete
abcdef:OpenSC2K neoneye$ npm start
> [email protected] start /Users/neoneye/git/OpenSC2K
> electron .
/Users/neoneye/git/OpenSC2K/node_modules/electron/index.js:9
throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
^
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at Object.<anonymous> (/Users/neoneye/git/OpenSC2K/node_modules/electron/index.js:9:9)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/neoneye/git/OpenSC2K/node_modules/electron/cli.js:3:16)
at Module._compile (module.js:660:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `electron .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/neoneye/.npm/_logs/2018-02-10T22_13_41_909Z-debug.log
abcdef:OpenSC2K neoneye$
from opensc2k.
You missed a step between npm install
and npm start
.
Try:
- Remove directory
- Clone again,
cd
into directory npm install
node_modules/.bin/electron-rebuild -f -w better-sqlite3
npm start
from opensc2k.
You missed a step between npm install and npm start
I followed all the steps as described, including step 4.
I didn't copy/paste the sequence of rm
, git clone
, cd
, since these steps are kind of trivial.
from opensc2k.
from opensc2k.
abcdef:docker_poc neoneye$ cat /Users/neoneye/.npm/_logs/2018-02-10T22_13_41_909Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/neoneye/git/OpenSC2K/node_modules/.bin:/Users/neoneye/.rvm/gems/ruby-2.3.0/bin:/Users/neoneye/.rvm/gems/ruby-2.3.0@global/bin:/Users/neoneye/.rvm/rubies/ruby-2.3.0/bin:/usr/local/opt/libxml2/bin:/usr/local/heroku/bin:/usr/local/apache-maven/apache-maven-3.2.3/bin:/Users/neoneye/bin:/usr/local/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/opt/X11/bin:/usr/local/apache-derby/db-derby-10.11.1.1-bin/bin:/Users/neoneye/.rvm/bin
9 verbose lifecycle [email protected]~start: CWD: /Users/neoneye/git/OpenSC2K
10 silly lifecycle [email protected]~start: Args: [ '-c', 'electron .' ]
11 silly lifecycle [email protected]~start: Returned: code: 1 signal: null
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: `electron .`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
13 verbose stack at EventEmitter.emit (events.js:160:13)
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:160:13)
13 verbose stack at maybeClose (internal/child_process.js:943:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/neoneye/git/OpenSC2K
16 verbose Darwin 17.3.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
18 verbose node v9.4.0
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: `electron .`
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
abcdef:docker_poc neoneye$
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
- 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.