Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- v14.16.1.tar.gz
- sudo npm run build
- check path of npm if you are using npm by
- which npm
- https://unix.stackexchange.com/questions/444998/how-to-set-and-understand-fs-notify-max-user-watches
- https://mrzacsmith.medium.com/how-to-kill-nodejs-hanging-processes-simply-in-linux-6cde8e864cc4
- https://peterthaleikis.com/posts/how-to-fix-throw-er-unhandled-error-event.html
- Core Dumped Fix:
- To list all Linux processes with some extra information about its origin, use this command:
- $ ps -ef -A
- Using Grep to List Node Processes
- You can also list Node processes only with a grep search:
- $ ps -ef | grep node
- This will show a list of running Node processes with their process ID pid. Let us assume that the pid is 1234, you would kill it with:
- $ kill 1234
- Stop All Node Processes
- In the event you want to kill all Node processes at once:
- $ pkill -f node
- sudo apt --auto-remove purge npm // clear npm memory cache
- sudo apt --auto-remove purge nodejs // clear npm memory cache
- killall node
- 10.16.3
- chmod -R a+x node_modules // change permission 777
- rm -rf directory name
- ou’ll need to login via SSH and then run the following commands from the home folder. (Change the version numbers in the commands below if you’d like to use a more recent version.)
- # Make a new folder for node
- mkdir node
- cd node
- # Download and unzip node
- curl -O https://nodejs.org/dist/v14.16.1/node-v14.16.1-linux-x64.tar.gz
- tar -xvzf node-v14.16.1-linux-x64.tar.gz --strip-components=1
- # Add node and npm it to PATH (and do so for future sessions too)
- export PATH=$HOME/node/bin:$PATH
- echo 'export PATH=$HOME/node/bin:$PATH' >> ~/.bashrc
- After that you should be able to run node and npm from any folder. Test it via:
- node -v
- npm -v
- I did find that on VentraIP I could not use Node to compile VuePress due to limits in the number of threads that each account can create. But other commands worked fine.
Add Comment
Please, Sign In to add comment