INSTALL.example 849 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
  2. sudo aptitude install nodejs
  3. node -v
  4. npm -v
  5. sudo aptitude install npm
  6. export PATH=$PATH:/usr/local/bin
  7. sudo npm install -g npx
  8. npx --version
  9. npx create-react-app starterfrontend-react-spa
  10. cd starterfrontend-react-spa
  11. npm start
  12. sudo aptitude purge nodejs
  13. sudo aptitude autoremove
  14. sudo rm /etc/apt/sources.list.d/nodesource.list
  15. sudo rm /etc/apt/sources.list.d/nodesource.list.save
  16. root@mail:/var/www# npx -v
  17. 10.8.2
  18. root@mail:/var/www# npm -v
  19. 10.8.2
  20. root@mail:/var/www# node -v
  21. v20.18.1
  22. root@mail:/var/www#
  23. npx create-react-app starterfrontend-react-spa
  24. cd starterfrontend-react-spa
  25. npm install \
  26. react@18 \
  27. react-dom@18
  28. npm install web-vitals
  29. npx create-react-app starterfrontend-react-spa
  30. cd starterfrontend-react-spa
  31. npm install \
  32. react@18 \
  33. react-dom@18
  34. npm install web-vitals