Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.(5)

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

ITtutoria

ITtutoria Logo ITtutoria Logo

ITtutoria Navigation

  • Python
  • Java
  • Reactjs
  • JavaScript
  • R
  • PySpark
  • MYSQL
  • Pandas
  • QA
  • C++
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA
Home/ Questions/Why do i get the trouble with “error: cannot find module '../lib/utils/unsupported.js'”?
Next
Answered
Phoenix Li
  • 25
Phoenix Li
Asked: May 17, 20222022-05-17T13:58:02+00:00 2022-05-17T13:58:02+00:00In: javascript

Why do i get the trouble with “error: cannot find module ‘../lib/utils/unsupported.js’”?

  • 25

. Advertisement .

..3..

. Advertisement .

..4..

I get the “error: cannot find module ‘../lib/utils/unsupported.js’” issue when trying to run “Ionic start project name”. Here is the detail of the error I got the error message:

Running command - failed![ERROR] An error occurred while running npm install (exit code 1):
 
  module.js:471
  throw err;
  ^
 
  Error: Cannot find module '../lib/utils/unsupported.js'
  at Function.Module._resolveFilename (module.js:469:15)
  at Function.Module._load (module.js:417:25)
  at Module.require (module.js:497:17)
  at require (internal/module.js:20:19)
  at /usr/local/lib/node_modules/npm/bin/npm-cli.js:19:21
  at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:79:3)
  at Module._compile (module.js:570:32)
  at Object.Module._extensions..js (module.js:579:10)
  at Module.load (module.js:487:32)
  at tryModuleLoad (module.js:446:12)

Please give me some advice to solve this problem.

cannot find module
  • 2 2 Answers
  • 50 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

2 Answers

  • Voted
  • Oldest
  • Recent
  • Random
  1. Best Answer
    lyytutoria Expert
    2022-06-06T09:14:08+00:00Added an answer on June 6, 2022 at 9:14 am

    The cause:

    This error occurs due to the library  isn’t supported, so you will not able to load it.

    Solution:

    Let’s reinstall node and remove /usr/local/lib/node_modules/npm to solve this error. This will work fine.

    If your MacOS is with Homebrew, below guggestion will help you.

    sudo rm -rf /usr/local/lib/node_modules/npm
    brew reinstall node
    • 15
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  2. Maël Langlois
    2022-05-25T20:03:09+00:00Added an answer on May 25, 2022 at 8:03 pm

    I followed the instructions and reinstalled my node. This error occurred to me.

    Warning! The post-install process failed. You can try again with brew postinstall node

    This command was executed.

    sudo chown -R $(whoami):admin /usr/local/lib/node_modules/

    Then, he ran

    brew postinstall node
    • 19
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
  • How to Split String by space in C++
  • How To Convert A Pandas DataFrame Column To A List
  • How to Replace Multiple Characters in A String in Python?
  • How To Remove Special Characters From String Python

Explore

  • Home
  • Tutorial

Footer

ITtutoria

ITtutoria

This website is user friendly and will facilitate transferring knowledge. It would be useful for a self-initiated learning process.

@ ITTutoria Co Ltd.

Tutorial

  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA

Legal Stuff

  • About Us
  • Terms of Use
  • Privacy Policy
  • Contact Us

DMCA.com Protection Status

Help

  • Knowledge Base
  • Support

Follow

© 2022 Ittutoria. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.