. 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.
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.
I followed the instructions and reinstalled my node. This error occurred to me.
This command was executed.
Then, he ran