Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install rekit-studio@next - compile error for node-pty@0.8.1 #6

Closed
jarmsden opened this issue Mar 11, 2020 · 13 comments
Closed

Comments

@jarmsden
Copy link

I get a compile error when installing rekit-studio@next. I have tested installing rekit-studio with node-pty@0.9.0 and installed successfully however not sure of the impact of upgrading to that version.

@supnate
Copy link
Collaborator

supnate commented Mar 11, 2020

Please just install rekit-studio@latest, we've remote the beta from the version.
For node pty installation issue, please google for the solution. I know sometimes it's hard to install since it needs to compile source code for the os while installtation.

@jarmsden
Copy link
Author

I'll give it a shot, thanks!

@jarmsden
Copy link
Author

Unfortunately the latest version is still using node-pty@.0.8.1 and will not compile. Trying to figure out how to work around it. node-pty@0.9.0 compiles fine. Problem is since it does not compile I can't install rekit-studio.

@darkmantle
Copy link

darkmantle commented Mar 24, 2020

Getting the same problem too, when doing a plain "npm i -g rekit-studio"

@darkmantle
Copy link

@iamflowerdog
Copy link

I am confusing the same question too, and i try many solutions, it did't work.

gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/rekit-studio/node_modules/node-pty/.node-gyp'
gyp ERR! System Darwin 18.7.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/rekit-studio/node_modules/node-pty
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok

@ianitsky
Copy link

ianitsky commented Mar 26, 2020 via email

@iamflowerdog
Copy link

My solution is use node 8 (node pty works well with node 8) Install n to swit between node versions. npm install -g n

On Thu, Mar 26, 2020, 07:25 Mr.YanG @.***> wrote: I am confusing the same question too, and i try many solutions, it did't work. gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/rekit-studio/node_modules/node-pty/.node-gyp' gyp ERR! System Darwin 18.7.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/rekit-studio/node_modules/node-pty gyp ERR! node -v v12.13.0 gyp ERR! node-gyp -v v5.0.5 gyp ERR! not ok — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#6 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABH372HAUHHXRAWCMK7FZDRJMURXANCNFSM4LFYEBSQ .
I just use nvm to switch my node to v8.16.2, it's failure again.

@fauzanazhiman
Copy link

This works for me:

  1. I use Windows 10 with Node 10.16.0
  2. Install windows-build-tools
    npm install --global --production windows-build-tools
  3. Then, install rekit and rekit-studio

Hope this helps someone

@erictamhk
Copy link

This works for me:

1. I use Windows 10 with Node 10.16.0

2. Install windows-build-tools
   `npm install --global --production windows-build-tools`

3. Then, install rekit and rekit-studio

Hope this helps someone

still can not install

@it-xp
Copy link

it-xp commented May 27, 2020

Same problem
build failed

@jarmsden
Copy link
Author

jarmsden commented Jun 15, 2020 via email

@jarmsden
Copy link
Author

jarmsden commented Jun 16, 2020

Update!!

After reviewing the errors more in-depth it looks like it is using node v8 to compile node-pty@0.8.1. I used a node version manager (https://www.sitepoint.com/quick-tip-multiple-versions-node-nvm) to download nodejs 8.10 and was able to install node-pty@0.8.1. I was able to install rekit@latest with out any issues as well as rekit-studio@latest. I followed the instructions on creating a test-rekit-app and then launched rekit-studio(runs on PORT 3100 default for me) and npm start in the test-rekit-app root folder. Everything appears to be working at this time. If you are still having issue you can reach out to me and I will try to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants