When installing node in centos7 virtual machine, an error is reported: cannot find module ‘…/lib/utils/unsupported. JS’. The complete error is as follows:
the prompt is that an unsupported.js file cannot be found. Finally, it is found that the soft connection is wrong when installing this version of node in centos7, This problem may not be solved by re installation (at present, I only encounter this problem in the virtual machine of centos7). Delete the original NPM connection and re create one.
1. First, download the CD to the bin folder of the node version, where version 12.16.2 is installed
cd /opt/node-v12.16.2-linux-x64/bin
2. Delete the NPM file in the path, and enter yes when prompted
rm npm
3. Reestablish file connection
ln -s ../lib/node_modules/npm/bin/npm-cli.js ./npm
Using NPM – V command again, it is found that it is almost OK.
the whole operation is shown as follows:
Read More:
- Copy node causes NPM execution error: cannot find module ‘/ / lib / utils/ unsupported.js ‘
- Node.js Cannot find module ‘mysql’ ‘express’
- How to solve the problem of Cannot find module’npmlog’ when installing nodejs under Linux
- Error 2052/2053 when installing node.js in win
- node.js Cannot find module “XXX” solution
- Node.js Error: cannot find module ‘xxx’
- How to solve the problem of error reporting in the introduction of Python Django no module name ‘Django. Utils. Six’
- [Solved] Error: Cannot find module ‘@vue/cli-shared-utils
- After NPM run dev is running, the browser does not respond and reports an error in. / ~ / Babel loader / lib! / ~ / Vue loader / lib/ selector.js?type=script&in
- Module build failed (from ./node_modules/babel-loader/lib/index.js) babel-loader
- Error: cannot find module ‘webpack / lib / ruleset’_ solve
- Error: ‘default’ is not exported by node_ modules/qs/lib/ index.js
- Run webpack error: Error: Cannot find module’webpack/lib/node/NodeTemplatePlugin’
- The solution of centos7 in VMware virtual machine unable to access after installing nginx
- Solve the problem of prompt couldn’t find path to unrear library after installing unrear in Python
- After node.js is installed, use the instruction node version in vscode to show that it is not an external or internal instruction. The solution is as follows:
- Module build failed: error: cannot find module ‘node sass’ error
- [Solved] This dependency was not found: * core-js/modules/es.error.cause.js in ./node_modules/@babel
- Error: cannot find module ‘node sass’
- Node.js Using port 80 to report errors in Linux