Aug
5
2018
Development Environment for Ionic framework PWA
Posted by AJ Mercer at 9:19 am Ionic PWA
UPDATE: This is still a work in progress - since changing to use 'npx'
[ ERROR ] unhandledRejection Exited with code 3 Error: Exited with code 3 at ChildProcess.h.once.r (/home/ajm/websites/ionic-pwa/node_modules/@stencil/core/dist/sys/node/sys-util.js:1:34007) at Object.onceWrapper (events.js:317:30) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at maybeClose (internal/child_process.js:925:16) at Socket.stream.socket.on (internal/child_process.js:346:11) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at Pipe._handle.close [as _onclose] (net.js:557:12)
But t least app is running now :-)
[ WARN ] build warn
Generated an empty bundle
Operating System
Applications
- Google Chrome (Firefox already installed)
- MS Visual Code Studio
- tslint: <ctrl-p> ext install eg2.tslint
- Git
$ sudo apt install git - Curl
$ sudo apt install curl
Development Envirnonment
- Node JS and NPM
- $ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs - $ node -v
v8.11.3 - $ npm -v
5.6.0 (5.x.x required) - $ sudo npm install -g npm
- so you dont have to sudo npm
$ sudo chown -R $(whoami) ~/.npm
- $ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
- Ionic CLI
- sudo npm install -g ionic
ionic info
> ionic (Ionic CLI) : 4.1.1
- sudo npm install -g ionic
- Ionic PWA Toolkit
- $ sudo npx create-stencil ionic-pwa
- $ cd ./ionic-pwa
- $ sudo npm start