Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #32178
| Path | csiph.com!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: How to get swank-js up and running |
| Date | Sat, 14 Jan 2017 21:21:55 +0100 |
| Organization | PointedEars Software (PES) |
| Lines | 83 |
| Message-ID | <10769191.O9o76ZdvQC@PointedEars.de> (permalink) |
| References | <878tqdjw22.fsf@filestore.home.gustad.com> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8Bit |
| X-Trace | solani.org 1484425317 4466 eJwFwQkBwDAIA0BLtISwyuH1L2F3pjwsB42wte1yCdppxo7ixjeaOjP1EmoVkHQlZC/msX8u8RGK (14 Jan 2017 20:21:57 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Sat, 14 Jan 2017 20:21:57 +0000 (UTC) |
| User-Agent | KNode/4.14.2 |
| Face | iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg== |
| X-User-ID | eJwNycERwCAMA7CVYmKbdpwAzf4jlNNTSsN70jLV6qC5nzDqDeXwgrp3BXE+pLyEK3AnNSf79Boj+BGjT9UPHlkUeA== |
| Cancel-Lock | sha1:ESGhGM4zS1yXmzJG3aKJtBJBWVE= |
| X-NNTP-Posting-Host | eJwNyMEBwCAIA8CVRCDFcTSS/Uew97x0GPgFEpFK2Ry7E7WXOq4WbZ9ediXX9WoSOLP+ITk8HjZ8EiY= |
| X-Face | %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v |
| Xref | csiph.com comp.lang.javascript:32178 |
Show key headers only | View raw
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.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
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
csiph-web