GithubHelp home page GithubHelp logo

Comments (4)

gkutiel avatar gkutiel commented on May 21, 2024

Made some, please confirm that it works out for you.

from jumpfm.

NTMan avatar NTMan commented on May 21, 2024

Thanks, it really helps easy involved in development.

Some remarks:

  1. For installing npm packages globally must used root rights for this needed add sudo before line:
    npm i -g typescript
    sudo npm i -g typescript // is right variant for Linux

  2. electron .
    I see that you use globally installed electron, for this I propose change command line from remark 1 to follow variant:
    sudo npm i -g typescript electron
    But in my distribution, I have errors during global install electron

$ sudo npm i -g electron
[sudo] password for mikhail: 
/usr/bin/electron -> /usr/lib/node_modules/electron/cli.js

> [email protected] postinstall /usr/lib/node_modules/electron
> node install.js

/usr/lib/node_modules/electron/install.js:48
  throw err
  ^

Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/electron/.electron'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall 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!     /root/.npm/_logs/2017-08-26T20_32_31_504Z-debug.log

I think it bug in electron package
instead of mkdir '/usr/lib/node_modules/electron/.electron' they should use mkdir -p' /usr/lib/ node_modules/electron/.electron'
For example:

# mkdir '/usr/lib/node_modules/electron/.electron'
mkdir: can not create directory '/usr/lib/node_modules/electron/.electron': No such file or directory
# mkdir -p '/usr/lib/node_modules/electron/.electron'

Until this bug not fixed I'm forced to install electron locally and launch jumpfm with command
$ ./node_modules/.bin/electron .

  1. How much time tsc -w working ???
$ tsc -w
1:40:32 AM - Compilation complete. Watching for file changes.


I am waiting several minutes for the exit of this command, but not having waited completion and exit in terminal, terminate it by Ctrl + C.
Jumpfm works despite this, but it left me with unpleasant after-taste.

from jumpfm.

gkutiel avatar gkutiel commented on May 21, 2024

I updated the README.

  1. You might want to change npm's default directory
  2. Use different terminal for each of tsc -w, sass --watch scss:css, electron . these commands don't return until you kill them.

from jumpfm.

NTMan avatar NTMan commented on May 21, 2024

Thanks, I am also would added warning note:
Due the electron an unsupport installation under root, don't use sudo, change owner of node_modules instead sudo chown -vR `whoami` `npm get prefix`/lib/node_modules/ or change prefix to home dir mkdir ~/npm-global && npm config set prefix ~/npm-global/

Also would be nice have helpers for develop plugins in git. I means that all plugins automatically downloaded as npm modules to directory ~/.jumpfm/plugins/node_modules
For example I want make some changes to jumpfm-fs plugin for eliminate annoying Panel updates when changed some files, add sorting, etc . And I needed manually symlink ~/.jumpfm/plugins/node_modules/jumpfm-fs to repo https://github.com/JumpFm/jumpfm-fs which I need clone separately. And use separate copy of tsc -w for plugin. Also I'm constantly afraid that jump-fs will automatically update plugin jumpfm-fs and erase all my uncommitted edits. So it would be very usefull have ability have development version of plugin inside directory plugin inside jumpfm directory. And plugins can be added to this directory with git command.

from jumpfm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.