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

install help #68

Closed
rogersantosferreira opened this issue May 9, 2019 · 6 comments
Closed

install help #68

rogersantosferreira opened this issue May 9, 2019 · 6 comments
Milestone

Comments

@rogersantosferreira
Copy link

rogersantosferreira commented May 9, 2019

Hi!
Can anyone help me with the install of Pylon? I can't manage to make it work :/

I'm trying to install pylon on Debian 9.9 (Strech). See the console response:

`npm WARN deprecated [email protected]: Old versions of Formidable are not compatible with the current Node.js; Upgrade to 1.2.0 or later
npm WARN lifecycle [email protected]install: cannot run in wd [email protected] node scripts/install.js (wd=/opt/bitnami/apache2/htdocs/pylon/node_modules/node-pty)
npm WARN lifecycle [email protected]
postinstall: cannot run in wd [email protected] node scripts/post-install.js (wd=/opt/bitnami/apache2/htdocs/pylon/node_modules/node-pty)

[email protected] postinstall /usr/lib/node_modules/pln
if [ -d 'node_modules/ace' ]; then cd node_modules/ace; else mkdir -p node_modules; ln -s ../../ace node_modules/ace; ln -s ../../treehugger node_modules/treehugger; cd ../a
ce; fi; make clean pre_build; ./Makefile.dryice.js minimal; cd ../..; make worker; if [ -L 'node_modules/ace' ]; then rm node_modules/ace; rm node_modules/treehugger; rmdir no
de_modules; fi
rm -rf build
rm: cannot remove 'build': Permission denied
Makefile:34: recipe for target 'clean' failed
make: *** [clean] Error 1
/opt/bitnami/apache2/htdocs/pylon/node_modules/architect-build/copy.js:121
throw e;
^
Error: EACCES: permission denied, open '/opt/bitnami/apache2/htdocs/pylon/node_modules/ace/lib/ace/snippets/apex.js'
at Object.openSync (fs.js:436:3)
at Object.writeFileSync (fs.js:1229:35)
at write (/opt/bitnami/apache2/htdocs/pylon/node_modules/architect-build/copy.js:110:16)
at Function.copy.file (/opt/bitnami/apache2/htdocs/pylon/node_modules/architect-build/copy.js:115:9)
at addSnippetFile (/opt/bitnami/apache2/htdocs/pylon/node_modules/ace/Makefile.dryice.js:611:14)
at /opt/bitnami/apache2/htdocs/pylon/node_modules/ace/Makefile.dryice.js:386:13
at Array.forEach ()
at buildAce (/opt/bitnami/apache2/htdocs/pylon/node_modules/ace/Makefile.dryice.js:384:15)
at main (/opt/bitnami/apache2/htdocs/pylon/node_modules/ace/Makefile.dryice.js:63:9)
at Object. (/opt/bitnami/apache2/htdocs/pylon/node_modules/ace/Makefile.dryice.js:678:5)
mkdir -p plugins-client/lib.ace/www/worker
mkdir: cannot create directory ‘plugins-client/lib.ace/www/worker’: Permission denied
Makefile:70: recipe for target 'plugins-client/lib.ace/www/worker/worker-language.js' failed
make: *** [plugins-client/lib.ace/www/worker/worker-language.js] Error 1`

My nodejs version is 12.2.0
My npm version is 6.9.0

Note: it is the first time I have tried some npm install. Sorry if my problem sounds a litte stupid.

There is some tutorial to install it? The instructions is too simple :/ on readme.

Thx in advance!

@exsilium
Copy link
Collaborator

exsilium commented May 9, 2019

Thanks for the report @rogersantosferreira ! To be honest, I haven't tried running Pylon using Node 12 - I need to get to that to try and reproduce the issue.

@exsilium
Copy link
Collaborator

Issue confirmed to be Node 12 specific - https://travis-ci.org/pylonide/pylon/builds/531824731

@exsilium
Copy link
Collaborator

Currently relating this to node-pty Node.js v12 support:

Current workaround is to use older version of node. Once node-pty version 0.9.0 gets released a dependency upgrade will be performed also for Pylon.

@rogersantosferreira
Copy link
Author

rogersantosferreira commented May 18, 2019

Hi, exsilium! I thank you for your time to reproduce the problem. Anyway, I have been testing the install exactly with the software versions that you provide in readme.

I tried with

  • Node 4.9.1
  • g++-4.9
  • make
  • Python 2.7 (Already installed at my Debian 9.9)

This is the error I got:

npm ERR! Linux 4.9.0-9-amd64
npm ERR! argv "/root/.nvm/versions/node/v4.9.1/bin/node" "/root/.nvm/versions/node/v4.9.1/bin/npm" "i"
npm ERR! node v4.9.1
npm ERR! npm  v2.15.11
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] install: `node scripts/install.js`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node scripts/install.js'.
npm ERR! This is most likely a problem with the node-pty package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-pty
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! 
npm ERR!     npm owner ls node-pty
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /opt/bitnami/apache2/htdocs/pylon/npm-debug.log

What can I do next?
Thanks again!

@exsilium
Copy link
Collaborator

@rogersantosferreira , sorry to hear that you are still having issues - it's still node-pty that fails to install. I recommend creating a new directory and try to just install node-pty by issuing commands:

Let me know if these work for you or if not, what's the log output.

Thanks!

@rogersantosferreira
Copy link
Author

It worked! Kind of... the server of pylon is working, but I can't reach it.
Anyway, Exsilium, I thank you very much for your help.

After all, I'm just trying to install it on Google Cloud Platform (GCP) on bitnami stack, but without success. I can't make it work like I was expecting :/ Maybe it is a problem with GCP or with my little skill with this.

Thanks again. I will try at localhost! I really liked the idea of pylon!

exsilium added a commit that referenced this issue Jul 1, 2019
- Been waiting for a full 0.9.0 release for a while, taking beta out for a spin;
- Addresses installation issues reported in #68
- Lock updated
exsilium added a commit that referenced this issue Jul 2, 2019
- Addresses installation issues reported in #68
@exsilium exsilium added this to the v2.5.0 milestone Jul 24, 2019
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

2 participants