You are not logged in.
Pages: 1
Hello fellow arch users,
I'm still kind of a noob in arch, but i'm learning more everyday. Today i tried to install and run Phonegap on my Mac.
I found a tutorial http://tuttlem.github.io/2014/08/29/pho … linux.html and I installed all the packages needed (android-sdk & nodejs etc.) but when I come to the installation part i'm a little bit stuck.
When I run the command: $ sudo npm install -g phonegap
I get this error code: sudo: npm: command not found
This is the code you also find in the installation guide on the phonegap website.
Someone any ideas?
Why join the navy, if you can be a pirate!
Offline
You need to install whatever provides npm.
If you need to know what package provides which file, install the package "pkgfile". Run "pkgfile -h", it should tell you how to update pkgfile's own little database. Then run "pkgfile npm" or whatever you need, it will spit out a package name. I think pacman version 5 has this built in, but I have not yet used the new feature.
Offline
I think this part of the guide is wrong
PhoneGap is installed using npm which is part of the NodeJS suite, so you’ll need to have it installed as well:
$ sudo pacman -S nodejs
npm is it's own package
$ pacman -Si npm
Repository : community
Name : npm
Version : 3.7.3-1
Description : A package manager for javascript
Architecture : any
URL : https://www.npmjs.com/
Licenses : custom:Artistic
Groups : None
Provides : nodejs-node-gyp
Depends On : nodejs semver
Optional Deps : python2: for node-gyp
Conflicts With : None
Replaces : None
Download Size : 2.14 MiB
Installed Size : 10.45 MiB
Packager : Felix Yan <felixonmars@archlinux.org>
Build Date : Fri 19 Feb 2016 12:29:29 AM EST
Validated By : MD5 Sum SHA-256 Sum SignatureOffline
I think pacman version 5 has this built in, but I have not yet used the new feature.
pacman -Fs npm
Offline
Thanks I installed the npm package and phonegap has installed, but when I try to open my file menu (i'm in GNOME 3) to make a new folder for my Project I only see a spinning kind of wheel and then nothing happends. This also happends when I try to open disk usage analyzer. Does someone no what to do?
Why join the navy, if you can be a pirate!
Offline
Is this the Gnome disk usage analyzer? If so, run it in a terminal and see if there are any relevant error messages. This is what you always want to do first, if something refuses to work, unless you know where it saves its logfiles.
Offline
Pages: 1