I used Ubuntu version of Linux, downloaded nodeJS6 executable file compression package from nodeJS official website, extracted it into folder under the Window, and uploaded it to Linux server through WinSCP.
Configure environment variables:
Add a nodejs.sh script under /etc/profile.d/, which reads as follows:
export NODE_HOME=/home/TECS/nodejs/node-v6.11.1-linux-x64
export PATH=$PATH:$NODE_HOME/bin
export NODE_PATH=$NODE_HOME/lib/node_modules
If you want to make the configuration work without restarting the machine, repeat the three commands from the command line.
Running NPM-V at this time Cannot find Module ‘NPMLOG’ error.
The solution
CD command enter /home/TECS/nodejs/node-v6.11.1-linux-x64/bin
then execute the following command to establish the soft connection:
ln -s ../lib/node_modules/npm/bin/npm-cli.js
The generated NPM-cli.JS soft connection is then renamed to NPM. The original NPM file is not available.
mv npm-cli.js npm
div>
Read More:
- Installing and uninstalling nodejs in Linux
- After installing nodejs, run NPM on the command line and report error: cannot find module ‘internal / util / types’
- Cannot find module ‘.. / lib / utils / unsupported. JS’ problem in installing node in centos7
- Error reported by nodejs server of CentOS system: solution to cannot find module ‘jQuery’
- nodejs Error: Cannot find module ‘ejs‘
- Solve the problem of prompt couldn’t find path to unrear library after installing unrear in Python
- Perfectly solve the problem of NPM start error: cannot find module ‘XX’
- How to solve the problem of error 15: file not found when Linux starts
- How to solve the problem that the project module turns grey in Maven
- How to solve the problem of error reporting in the introduction of Python Django no module name ‘Django. Utils. Six’
- How to solve “import cv2 failed ImportError: DLL load fail: Cannot find the specified module” in Anaconda environment
- Solve angular’s cannot find module ‘@ angular devkit / core’ problem
- Installing opencv and Linux Makefile:160 : recipe for target ‘all’ failed problem resolution
- Clion appears cmake error: could not find cmake_ Root! What is the problem and how to solve it?
- Solve the problem of unable to start under zookeeper Linux
- Error: cannot find module ‘webpack / lib / ruleset’_ solve
- After installing MySQL again under Linux, the solution of ‘MySQL module failed to start’ appears
- Solved – problem cannot find module ‘webpack / bin / config yargs’
- Solve the problem of installing APK after Android studio compilation: error while installing apk
- Error: solution to the problem of cannot find module ‘webpack / bin / config yargs’