bradtraversy / devconnector_2.0

Social network for developers, built on the MERN stack
1.91k stars 1.26k forks source link

Using Normalize URL in Latest Version of Node. #287

Open fary58 opened 1 month ago

fary58 commented 1 month ago

You can use an npm alias to install this package under the original name:

npm i normalize-url@npm:@esm2cjs/normalize-url

but npm might dedupe this incorrectly when other packages depend on the replaced package. If you can, prefer using the scoped package directly:

npm i @esm2cjs/normalize-url

Usage

// Using ESM import syntax import normalizeUrl from "@esm2cjs/normalize-url";

// Using CommonJS require() const normalizeUrl = require("@esm2cjs/normalize-url").default;

vin1703 commented 1 month ago

I want to fix it can I ?

fary58 commented 1 month ago

I want to fix it can I ?

Yes you can just follow the instructions step by step.