Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #32177 > unrolled thread
| Started by | Petter Gustad <newsmailcomp6@gustad.com> |
|---|---|
| First post | 2017-01-14 20:11 +0100 |
| Last post | 2017-01-14 21:21 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.javascript
How to get swank-js up and running Petter Gustad <newsmailcomp6@gustad.com> - 2017-01-14 20:11 +0100
Re: How to get swank-js up and running Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-01-14 21:21 +0100
| From | Petter Gustad <newsmailcomp6@gustad.com> |
|---|---|
| Date | 2017-01-14 20:11 +0100 |
| Subject | How to get swank-js up and running |
| Message-ID | <878tqdjw22.fsf@filestore.home.gustad.com> |
I'm trying to install a local npm in my $HOME and then installing swank-js. I would like to get slime/swank running with either node/npm or js24. I'm running gentoo Linux. Here's what I did: curl https://www.npmjs.com/install.sh | npm_config_prefix=$HOME/javascript/npm sh PATH=$HOME/javascript/npm/bin/:$PATH type npm npm is hashed (/home/petter/javascript/npm/bin/npm) npm --version 4.0.5 npm install swank-js ... ... ... npm WARN enoent ENOENT: no such file or directory, open '/home/petter/package.json' npm WARN petter No description npm WARN petter No repository field. npm WARN petter No README data npm WARN petter No license field. I would assume my problems are due to my lack of experience with JS environments, but I'm using emacs and swank and misc inferior modes for other development and would like to do the same for JS. Any hints or references on how to get swank-js running? Thanks //Petter -- .sig removed by request.
[toc] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2017-01-14 21:21 +0100 |
| Message-ID | <10769191.O9o76ZdvQC@PointedEars.de> |
| In reply to | #32177 |
Petter Gustad wrote: > I'm trying to install a local npm in my $HOME and then installing > swank-js. I would like to get slime/swank running with either node/npm > or js24. I'm running gentoo Linux. Here's what I did: > > > curl https://www.npmjs.com/install.sh | > npm_config_prefix=$HOME/javascript/npm sh In general you should look for a Gentoo package to install, but in this case it appears that there is none, at least no official one: <https://packages.gentoo.org/packages/search?q=npm> > PATH=$HOME/javascript/npm/bin/:$PATH type npm > npm is hashed (/home/petter/javascript/npm/bin/npm) > npm --version > 4.0.5 > npm install swank-js > ... > ... > ... > npm WARN enoent ENOENT: no such file or directory, open > '/home/petter/package.json' npm WARN petter No description > npm WARN petter No repository field. > npm WARN petter No README data > npm WARN petter No license field. It is hard to tell apart what is your input and what is a program’s output. When you post logs of shell sessions, always include the minimum prompt (you can mask non-essential confidential information, we will understand it anyway). IIUC, you are attempting to install the npm package “swank-js”, but you are doing that in your home directory (/home/petter) where there is no package.json. In order to install a package by name only, the package needs to be registered in a configured npm registry or there needs to be a package.json in the current directory specifying the URI for the name. Otherwise you have to use the package URI. swank-js is in the global npm registry – <https://www.npmjs.com/package/swank-js> –, and I have no problems installing it from there with just “npm install swank-js”, so ISTM that you have not set up npm properly (yet). However, I think that npm 101 is beyond the scope of this newsgroup. [After you fixed the problem, you might want to install “swank-js” globally (for all users) instead of only for your user: npm install -g swank-js This will probably require “root” permission which you could get with sudo(8) if it is installed: sudo npm install -g swank-js Again you should look for a distribution package before you use “npm install” directly, but again there does not appear to be one in this case.] > I would assume my problems are due to my lack of experience with JS > environments, FYI, Gentoo really is not a Linux distribution suited for (GNU/Linux) beginners. > but I'm using emacs and swank and misc inferior modes for > other development and would like to do the same for JS. Any hints or > references on how to get swank-js running? HTH. For further information, RTFM, and please do that first the next time you have a problem. <http://catb.org/esr/faqs/smart-questions.html> -- PointedEars FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix> <https://github.com/PointedEars> | <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web