Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

169
Views
How to import certain node module version?

How would you import a specific version of a node module? I know in npm you can do npm i someModule@1.0.0 But whats not what I'm looking for. I so far I have like this:

// File 1
const fetch = require('node-fetch@2.6.6');

// File 2
const fetch = require('node-fetch@3.1.0');

Any help would be appreciated. Thank you.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I found my answer here. Thank you @szulbix for sending me this.

I ran npm i node-fetch-commonjs@npm:node-fetch@2.6.6 and then imported using

const fetch = require('node-fetch-commonjs');

I hoped this helped other people who come across this thread!

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!