node

Node.js 20.6 adds built-in support for .env files

Node.js 20.6 added built-in support for the .env file. This is an excellent addition to the platform and gives us the ability…

2 weeks ago

Fixing “error: cannot find module semver” error in Node.js

When installing a package using npm, you might encounter the "error: cannot find module semver" error. + npm install ...…

6 months ago

Fix “Error:0308010C:digital envelope routines::unsupportedFixing” in Node.js

Node 17 introduced OpenSSL v3.0, which brought in some breaking changes, and the "Error: error:0308010C:digital envelope routines::unsupported" is a result…

6 months ago

Fixing “node: –openssl-legacy-provider is not allowed in node_options” error

I recently ran into the "node: --openssl-legacy-provider is not allowed in node_options" error while working with Node 17. It occurs…

7 months ago

JavaScript: fix “SyntaxError: cannot use import statement outside a module”

I recently was working with a third-party library. I ran into the error "Uncaught SyntaxError: cannot use import statement outside…

7 months ago

How to prevent npm install for unsupported Node.js versions

npm configurations allow us to do quite a lot of nifty things. One of them is to allow the project…

2 years ago

Specifying a node version in Repl.it

I was recently trying to use a later version of Node on Repl.it. I wanted to use a package that…

3 years ago

How to import/export ES6 modules in Node

If you have been following the javascript ecosystem for a while, you already know that even though ES6 modules are…

6 years ago
Advertisements