Development Environment for Ionic framework PWA

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
           (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


Development Envirnonment

  • Node JS and NPM
    • $ curl -sL | sudo -E bash -
      sudo apt-get install -y nodejs
    • $ node -v
    • $ 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
  • Ionic CLI
    • sudo npm install -g ionic
      ionic info
      > ionic (Ionic CLI) : 4.1.1
  • Ionic PWA Toolkit
    • $ sudo npx create-stencil ionic-pwa
    • $ cd ./ionic-pwa
    • $ sudo npm start