clean-docker / Magento2

Docker Image to Magento 2 local development in Mac, Linux and Windows
https://hub.docker.com/r/rafaelcgstz/magento2/
MIT License
444 stars 251 forks source link

Upgrade Node for Magento PWA setup #117

Open amaankulshreshtha opened 4 years ago

amaankulshreshtha commented 4 years ago

I am following this tutorial to set up Magento PWA app. I need NodeJS >=10.14.1 LTS, but the current version inside the container is v6.17.1. I tried to follow this SO answer to update NodeJS inside the container but ran into the following error

W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
W: chmod 0600 of file /var/lib/apt/lists/deb.nodesource.com_node%5f6.x_dists_stretch_InRelease failed - Item::QueueURI (1: Operation not permitted)
W: chmod 0644 of file /var/lib/apt/lists/deb.nodesource.com_node%5f6.x_dists_stretch_InRelease failed - 201::URIDone (1: Operation not permitted)

after running the first command.

Please suggest a way to upgrade NodeJS inside this container.