punycode is deprecated in npm – what should I replace it with?

Recently I faced this same issue. I highly recommend you use the LTS(long term support) version of the node. You can validate the version here: https://nodejs.org/en when I’m writing this answer the node LTS version is 20.10.0 so then in your command line you should perform: $nvm install 20.10.0 $nvm use 20.10.0 This solves the … Read more

“npm run” fails with ERR_OSSL_EVP_UNSUPPORTED

Node.js version 17 has switched to using OpenSSL 3.0. They advise: While OpenSSL 3.0 APIs should be mostly compatible with those provided by OpenSSL 1.1.1, we do anticipate some ecosystem impact due to tightened restrictions on the allowed algorithms and key sizes. If you hit an ERR_OSSL_EVP_UNSUPPORTED error in your application with Node.js 17, it’s … Read more

Cannot brew install node – Warning: The post-install step did not complete successfully

There are two steps involved. Simply run these four commands: sudo chown -R `whoami`:admin /usr/local/include/node sudo chown -R `whoami`:admin /usr/local/bin sudo chown -R `whoami`:admin /usr/local/share sudo chown -R `whoami`:admin /usr/local/lib/dtrace Finally, run the overwrite command: brew link –overwrite node

What is the difference between apollo server and express-graphql

Below is the now deleted section from the apollo-server README comparing apollo-server to express-graphql. Note that some of these arguments do not apply anymore e.g. express-grapqhl is now written in TypeScript. Hence the removal of this section from the README. One observation is that apollo-server is too bloated, and is slowly showing a lack of … Read more

node.js: how to use setInterval and clearInterval? [duplicate]

If you want a JavaScript like interval ID after creating a setInterval timer, you can do the following, function callbackFunc() { console.log(“I’m just an example callback function”); } const timeoutObj = setInterval(callbackFunc, 1000); const intervalId = timeoutObj[Symbol.toPrimitive](); //intervalId is an interger // Later you can clear the timer by calling clearInterval with the intervalId like, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)