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

Installation as a npm package fails #56

Closed
exsilium opened this issue Oct 26, 2018 · 1 comment
Closed

Installation as a npm package fails #56

exsilium opened this issue Oct 26, 2018 · 1 comment
Assignees
Labels

Comments

@exsilium
Copy link
Collaborator

exsilium commented Oct 26, 2018

Installation of Pylon as a npm package fails due to the postinstall step and the different location of ace editor:

> [email protected] postinstall /Users/xxx/Projects/pylon_npm/node_modules/pln
> cd node_modules/ace; make clean pre_build; ./Makefile.dryice.js minimal; cd ../..; make worker

sh: line 0: cd: node_modules/ace: No such file or directory
@exsilium exsilium self-assigned this Oct 26, 2018
@exsilium exsilium added the bug label Oct 26, 2018
@exsilium
Copy link
Collaborator Author

> [email protected] postinstall /home/xxx/pylon_npm/node_modules/pln
> make worker

mkdir -p plugins-client/lib.ace/www/worker
rm -rf /tmp/pln_worker_build
mkdir -p /tmp/pln_worker_build/ext
ln -s `pwd`/plugins-client/ext.language /tmp/pln_worker_build/ext/language
ln -s `pwd`/plugins-client/ext.codecomplete /tmp/pln_worker_build/ext/codecomplete
ln -s `pwd`/plugins-client/ext.jslanguage /tmp/pln_worker_build/ext/jslanguage
ln -s `pwd`/plugins-client/ext.csslanguage /tmp/pln_worker_build/ext/csslanguage
ln -s `pwd`/plugins-client/ext.htmllanguage /tmp/pln_worker_build/ext/htmllanguage
ln -s `pwd`/plugins-client/ext.linereport /tmp/pln_worker_build/ext/linereport
ln -s `pwd`/plugins-client/ext.linereport_php /tmp/pln_worker_build/ext/linereport_php
ln -s `pwd`/plugins-client/ext.linereport_python /tmp/pln_worker_build/ext/linereport_python
node Makefile.dryice.js worker
# cloud9 worker ---------
/home/xxx/pylon_npm/node_modules/dryice/lib/dryice/index.js:654
      throw new Error('Each commonjs root should be a directory: ' + root);
      ^

Error: Each commonjs root should be a directory: /home/xxx/pylon_npm/node_modules/pln/node_modules/ace/lib
    at CommonJsProject.<anonymous> (/home/xxx/pylon_npm/node_modules/dryice/lib/dryice/index.js:654:13)
    at Array.map (<anonymous>)
    at new CommonJsProject (/home/xxx/pylon_npm/node_modules/dryice/lib/dryice/index.js:652:27)
    at Function.copy.createCommonJsProject (/home/xxx/pylon_npm/node_modules/dryice/lib/dryice/index.js:981:10)
    at worker (/home/xxx/pylon_npm/node_modules/pln/Makefile.dryice.js:43:30)
    at main (/home/xxx/pylon_npm/node_modules/pln/Makefile.dryice.js:35:9)
    at Object.<anonymous> (/home/xxx/pylon_npm/node_modules/pln/Makefile.dryice.js:99:5)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
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

exsilium added a commit that referenced this issue Oct 29, 2018
ljxu1 pushed a commit to ljxu1/cloud9 that referenced this issue May 25, 2019
- Splits postinstall to preinstall and postinstall
- Considers the path logic when installed via NPM
- Able to install via npm but still in inoperable state
- Version bump
ljxu1 pushed a commit to ljxu1/cloud9 that referenced this issue May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant