1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
sudo dnf module list nodejs Output Name Stream Profiles Summary nodejs 10 [d] common [d], development, minimal, s2i Javascript runtime nodejs 12 common, development, minimal, s2i Javascript runtime //Two streams are available, 10 and 12. The [d] indicates that version 10 is the default stream. If you’d prefer to install Node.js 12, switch module streams now: sudo dnf module enable nodejs:12 sudo dnf install nodejs node --version Output v12.13.1 Installing the nodejs package should also install the npm Node Package Manager utility as a dependency. Verify that it was installed properly as well: npm --version Output 6.12.1 |
For some issue, the webpack is not working well, please do the following and try.
1 2 3 4 5 6 7 8 9 |
npm uninstall webpack-dev-server --save npm uninstall webpack-cli --save npm uninstall webpack --save //then npm install --save-dev webpack@4.2.0 webpack-cli@2.0.12 webpack-dev-server@3.1.1 npm run dev //run |