Open erbaafidotama opened 4 years ago
Please use rekit-studio -p 3105
to set the port.
sorry,, like this?
"scripts": { "start": "cross-env PORT=3100 node scripts/start.js rekit-studio -p 3105", "build": "node scripts/build.js", "test": "node scripts/test.js" },
No, this script is used to start dev server not IDE. You should install rekit-studio as a global modle:
npm install -g rekit-studio
Then go to your project folder:
rekit-studio -p 3020
Then access http://localhost:3020 to access the IDE.
Sorry for the confusion that the readme was outdated, it's only for rekit 2.x.
I still get some errors. Maybe you can still help me.
after i run:
npm install -g rekit-studio
result: `C:\Users\erbaafidotama\AppData\Roaming\npm\rekit-studio -> C:\Users\erbaafidotama\AppData\Roaming\npm\node_modules\rekit-studio\bin\index.js
node-pty@0.8.1 install C:\Users\erbaafidotama\AppData\Roaming\npm\node_modules\rekit-studio\node_modules\node-pty node scripts/install.js
C:\Users\erbaafidotama\AppData\Roaming\npm\node_modules\rekit-studio\node_modules\node-pty>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\erbaafidotama\AppData\Local\Programs\Python\Python36\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-pty@0.8.1 install: node scripts/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-pty@0.8.1 install 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! C:\Users\erbaafidotama\AppData\Roaming\npm-cache_logs\2020-03-12T03_11_16_321Z-debug.log`
Can help, please?
Dont use node Version 12, switch to Version 10:
npm install -g n
n 10.16.0
That worked for me.
Dont use node Version 12, switch to Version 10:
npm install -g n
n 10.16.0
That worked for me.
This doesn't work for me. I use node 10.16.0 too but I'm still facing the same error :(
I realized that I missed to install windows-build-tools. Node 10.16.0 now works for me.
Am using Ubuntu 20.04 Desktop x64 (obvs) and node 14 and previously tried on 12, neither of which allow rekit-studio to install giving the following super awesome error. For the record, it also throws similar errors on Windows 10 (unsure on build but fully updated to May 2020) and on Mac OS X (10.14.6 bc 10.15 breaks Adobe 32 bit products I have and, frankly, I like Mojave and don't see any critical reason to change until Adobe and Apple get their shit together). I can list their errors as well later but for now I'm on this OS. In the following output I show that I can install rekit 3.0 just fine but trying to install the latest version of rekit-studio (node 14 and npm 6) fails:
me@mylaptop-6969:~/Documents/rekit-studio-failing$ npm install -g rekit npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated /home/me/.nvm/versions/node/v14.10.0/bin/rekit -> /home/me/.nvm/versions/node/v14.10.0/lib/node_modules/rekit/bin/rekit.js npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/rekit/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
node-pty@0.8.1 install /home/me/.nvm/versions/node/v14.10.0/lib/node_modules/rekit-studio/node_modules/node-pty node scripts/install.js
make: Entering directory '/home/me/.nvm/versions/node/v14.10.0/lib/node_modules/rekit-studio/node_modules/node-pty/build'
CXX(target) Release/obj.target/pty/src/unix/pty.o
In file included from ../../nan/nan_converters.h:67,
from ../../nan/nan.h:222,
from ../src/unix/pty.cc:20:
../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase |
val->To ## TYPE(isolate->GetCurrentContext()) \ | |
---|---|---|
v8::Local |
../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’ 22 | X(Boolean) | ^
In file included from /home/me/.cache/node-gyp/14.10.0/include/node/node.h:67,
from ../../nan/nan.h:53,
from ../src/unix/pty.cc:20:
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2848:37: note: initializing argument 1 of ‘v8::Local |
Local |
return val->NAME ## Value(isolate->GetCurrentContext()); \ | ||
---|---|---|---|---|---|---|
v8::Local |
../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
40 | X(bool, Boolean)
| ^
In file included from /home/me/.cache/node-gyp/14.10.0/include/node/node.h:67,
from ../../nan/nan.h:53,
from ../src/unix/pty.cc:20:
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2858:30: note: initializing argument 1 of ‘bool v8::Value::BooleanValue(v8::Isolate) const’
2858 | bool BooleanValue(Isolate isolate) const;
| ~~~^~~~~
In file included from ../../nan/nan_new.h:189,
from ../../nan/nan.h:223,
from ../src/unix/pty.cc:20:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase~~
../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo~~
../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyFork(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/unix/pty.cc:154:48: error: no matching function for call to ‘v8::Value::ToString()’
154 | v8::String::Utf8Value file(info[0]->ToString());
| ^
In file included from /home/me/.cache/node-gyp/14.10.0/include/node/node.h:67,
from ../../nan/nan.h:53,
from ../src/unix/pty.cc:20:
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2810:44: note: candidate: ‘v8::MaybeLocal~~~
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2810:44: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc:165:66: error: no matching function for call to ‘v8::Array::Get(Nan::imp::IntegerFactory~~~
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2810:44: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc:186:39: error: no matching function for call to ‘v8::Value::IntegerValue()’
186 | winp.ws_col = info[4]->IntegerValue();
| ^
In file included from /home/me/.cache/node-gyp/14.10.0/include/node/node.h:67,
from ../../nan/nan.h:53,
from ../src/unix/pty.cc:20:
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe~~~
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc:187:39: error: no matching function for call to ‘v8::Value::IntegerValue()’
187 | winp.ws_row = info[5]->IntegerValue();
| ^
In file included from /home/me/.cache/node-gyp/14.10.0/include/node/node.h:67,
from ../../nan/nan.h:53,
from ../src/unix/pty.cc:20:
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe~~~
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc:195:26: error: no matching function for call to ‘v8::Value::ToBoolean()’
195 | if (info[8]->ToBoolean()->Value()) {
| ^
In file included from /home/me/.cache/node-gyp/14.10.0/include/node/node.h:67,
from ../../nan/nan.h:53,
from ../src/unix/pty.cc:20:
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2848:18: note: candidate: ‘v8::Local~~~~
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc:230:35: error: no matching function for call to ‘v8::Value::IntegerValue()’
230 | int uid = info[6]->IntegerValue();
| ^
In file included from /home/me/.cache/node-gyp/14.10.0/include/node/node.h:67,
from ../../nan/nan.h:53,
from ../src/unix/pty.cc:20:
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe~~~
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc:231:35: error: no matching function for call to ‘v8::Value::IntegerValue()’
231 | int gid = info[7]->IntegerValue();
| ^
In file included from /home/me/.cache/node-gyp/14.10.0/include/node/node.h:67,
from ../../nan/nan.h:53,
from ../src/unix/pty.cc:20:
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe~~~
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyOpen(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/unix/pty.cc:315:39: error: no matching function for call to ‘v8::Value::IntegerValue()’
315 | winp.ws_col = info[0]->IntegerValue();
| ^
In file included from /home/me/.cache/node-gyp/14.10.0/include/node/node.h:67,
from ../../nan/nan.h:53,
from ../src/unix/pty.cc:20:
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe~~~
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc:316:39: error: no matching function for call to ‘v8::Value::IntegerValue()’
316 | winp.ws_row = info[1]->IntegerValue();
| ^
In file included from /home/me/.cache/node-gyp/14.10.0/include/node/node.h:67,
from ../../nan/nan.h:53,
from ../src/unix/pty.cc:20:
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe~~~
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyResize(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/unix/pty.cc:360:34: error: no matching function for call to ‘v8::Value::IntegerValue()’
360 | int fd = info[0]->IntegerValue();
| ^
In file included from /home/me/.cache/node-gyp/14.10.0/include/node/node.h:67,
from ../../nan/nan.h:53,
from ../src/unix/pty.cc:20:
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe~~~
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc:363:39: error: no matching function for call to ‘v8::Value::IntegerValue()’
363 | winp.ws_col = info[1]->IntegerValue();
| ^
In file included from /home/me/.cache/node-gyp/14.10.0/include/node/node.h:67,
from ../../nan/nan.h:53,
from ../src/unix/pty.cc:20:
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe~~~
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc:364:39: error: no matching function for call to ‘v8::Value::IntegerValue()’
364 | winp.ws_row = info[2]->IntegerValue();
| ^
In file included from /home/me/.cache/node-gyp/14.10.0/include/node/node.h:67,
from ../../nan/nan.h:53,
from ../src/unix/pty.cc:20:
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe~~~
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyGetProc(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/unix/pty.cc:387:34: error: no matching function for call to ‘v8::Value::IntegerValue()’
387 | int fd = info[0]->IntegerValue();
| ^
In file included from /home/me/.cache/node-gyp/14.10.0/include/node/node.h:67,
from ../../nan/nan.h:53,
from ../src/unix/pty.cc:20:
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe~~~
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc:389:48: error: no matching function for call to ‘v8::Value::ToString()’
389 | v8::String::Utf8Value tty_(info[1]->ToString());
| ^
In file included from /home/me/.cache/node-gyp/14.10.0/include/node/node.h:67,
from ../../nan/nan.h:53,
from ../src/unix/pty.cc:20:
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2810:44: note: candidate: ‘v8::MaybeLocal~~~
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:2810:44: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc: In function ‘void pty_after_waitpid(uv_async_t~~~~~
../src/unix/pty.cc:489:69: warning: ‘v8::Local~~
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:6475:46: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc:708:65: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
708 | Nan::New~~
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:6475:46: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc:711:67: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
711 | Nan::New~~
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:6475:46: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc:714:68: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
714 | Nan::New~~
/home/me/.cache/node-gyp/14.10.0/include/node/v8.h:6475:46: note: candidate expects 1 argument, 0 provided
In file included from ../../nan/nan.h:53,
from ../src/unix/pty.cc:20:
../src/unix/pty.cc: At global scope:
/home/me/.cache/node-gyp/14.10.0/include/node/node.h:746:43: warning: cast between incompatible function types from ‘void (~~~~
../src/unix/pty.cc:717:1: note: in expansion of macro ‘NODE_MODULE’
717 | NODE_MODULE(pty, init)
| ^~~
make: *** [pty.target.mk:111: Release/obj.target/pty/src/unix/pty.o] Error 1
make: Leaving directory '/home/me/.nvm/versions/node/v14.10.0/lib/node_modules/rekit-studio/node_modules/node-pty/build'
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/me/.nvm/versions/node/v14.10.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Linux 5.4.0-47-generic
gyp ERR! command "/home/me/.nvm/versions/node/v14.10.0/bin/node" "/home/me/.nvm/versions/node/v14.10.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/me/.nvm/versions/node/v14.10.0/lib/node_modules/rekit-studio/node_modules/node-pty
gyp ERR! node -v v14.10.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/rekit-studio/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-pty@0.8.1 install: node scripts/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-pty@0.8.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
hope I'm not putting any identifying info in here.
For the record a coworker has used rekit 2.3 with node 14 and npm 6 on Mac OS X 10.15 (I think) and rekit-studio works just fine. Also it seems most of the docs have to do with rekit 2.3.....leading me to think 3.0 is not as stable as stated. However, that is just a guess and I imagine that this issue is fixable, just needs time that is hard to come by (I relate to that a lot and understand). My hope is that this will, somehow, help when that time is possible. Thanks! Let me know if you need any other output but I'm sure you have enough as I doubt I am the only one. =)
Hiii.. i want to open rekit studio. in my server when start showing: `You can now view belajar_niat in the browser.
Local: http://localhost:3100/ On Your Network: http://192.168.1.169:3100/
Note that the development build is not optimized. To create a production build, use npm run build.`
i read in rekit doc, i must to setup rekit studio port in package.json. but still cant open rekit studio. can help me?