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 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> References: <878tqdjw22.fsf@filestore.home.gustad.com> Reply-To: Thomas 'PointedEars' Lahn 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+&. 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: > 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 – –, 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. -- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.