You are not logged in.

#1 2016-02-19 18:45:56

DejanSido
Member
From: NL
Registered: 2016-02-16
Posts: 8

Phonegap installation problem

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

#2 2016-02-19 19:14:55

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Phonegap installation problem

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

#3 2016-02-19 19:16:56

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: Phonegap installation problem

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  Signature

Offline

#4 2016-02-19 19:20:50

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: Phonegap installation problem

Awebb wrote:

I think pacman version 5 has this built in, but I have not yet used the new feature.

pacman -Fs npm

Offline

#5 2016-02-20 11:11:13

DejanSido
Member
From: NL
Registered: 2016-02-16
Posts: 8

Re: Phonegap installation problem

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

#6 2016-02-20 18:06:48

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Phonegap installation problem

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

Board footer

Powered by FluxBB