Value In Brief – by Abanoub Hanna
All You Need To Know Explained In Brief

Posts Tagged with npm

How to upgrade npm in Laravel Sail ?

When I stop the vite live server sail npm run dev of Laravel 10 by ctrl + c, the CLI tells me to upgrade npm with this message. npm notice npm notice New patch version of npm available! 9.6.4 -> 9.6.5 npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.6.5 npm notice Run npm install -g npm@9.6.5 to update! npm notice Here is a screenshot of the npm upgrade notice. Upgrade npm inside Laravel Sail Docker environment You can not just run npm install -g npm@9.

How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)?

uninstall Node.js There is a /Users/myusername/local folder that contained a include with node and lib with node and node_modules. Deleting these local references. Run this command in your Terminal. sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*} Or use this command. sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp or do those steps instead. To completely uninstall node + npm is to do the following: go to /usr/local/lib and delete any node and node_modules go to /usr/local/include and delete any node and node_modules directory if you installed it with brew install node, then run brew uninstall node in your terminal check your Home directory for any local or lib or include folders, and delete any node or node_modules from there such as ~/.

How to fix dyld: Library not loaded: /usr/local/opt/ icu4c/lib/ libicui18n.60.dylib ?

Use [Homebrew] to uninstall node and icu4c like this. brew uninstall --ignore-dependencies node icu4c Then install node.js like this. brew install node If the problem persists and the error kept occuring, try running this command. brew link --overwrite node If the issue resists again, try upgrading node instead of reinstalling it. So use this command: brew upgrade node Want to watch how to fix it in a video ? watch it here on YouTube.

Useful npm Packages for All Projects

date-fns date-fns (a.k.a Date Functions) is a library which gives you functions to deal with dates. It is great package with a small size. dotenv dotenv create a .env file to store your environment variables. So when you publish that project online you use the environment variables which you deploy the project on. socket.io Help you use the sockets to create realtime communications such as chat apps. UUID Help you create a universal unique identifier (UUID) with one line of code.