Hi,
I want to create a mobile app for my pythonanywhere web site. I have no experience in this and am just looking around at options. It seems many people suggest using ionic to create a hybrid mobile app. I wanted to play around with it and tried installing it (in both my virtual env and just in a regular bash console). Their website says to enter sudo npm install -g ionic but when I do get the the following error: sudo: unknown user: root. I also tried npm install -g ionic but got the following error:
npm ERR! Linux 4.4.0-1060-aws npm ERR! argv "node" "/usr/bin/npm" "install" "-g" "ionic" npm ERR! node v0.10.37 npm ERR! npm v3.10.6 npm ERR! path /usr/lib/node_modules npm ERR! code EACCES npm ERR! Error: EACCES, access '/usr/lib/node_modules' npm ERR! at module.exports (/usr/lib/node_modules/npm/lib/install/access-error.js:4:18) npm ERR! at /usr/lib/node_modules/npm/lib/install/writable.js:30:25 npm ERR! at /usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:232:16 npm ERR! at Object.oncomplete (fs.js:108:15) npm ERR! { [Error: EACCES, access '/usr/lib/node_modules'] code: 'EACCES', path: '/usr/lib/node_modules' } npm ERR! npm ERR! Please try running this command again as root/Administrator.
I then tried npm install ionic and that seemed to work but when I try any of the ionic commands I get the following message: ionic: command not found, making me think it's not really installed.
I did get the following warnings on the install:
npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.4 npm WARN enoent ENOENT, open '/home/myusername/package.json' npm WARN myusername No description npm WARN myusername No repository field. npm WARN myusername No README data npm WARN myusername No license field.
Am I not in the right directory when trying to run the install or not running the right command?
Thank you in advance! Also, if there are other methods you suggest for creating a mobile app and integrating with existing code on pythonanywhere please let me know.