NPM install isn't creating the node_modules folder with package.json there

Viewed 16

Hi Ive been having issues trying to install my node_modules folder in a directory. I have the package.json file there and I deleted the package-lock.json. I tried clearing the cache as well but no luck. Any help is greatly appreciated.

Below are my errors:

# /opt/cpanel/ea-nodejs16/bin/npm i
npm ERR! code 127
npm ERR! path /home/mydomain/public_html/members/node_modules/protobufjs
npm ERR! command failed
npm ERR! command sh /tmp/postinstall-7c00f83d.sh
npm ERR! /tmp/postinstall-7c00f83d.sh: line 1: node: command not found

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/mydomain/.npm/_logs/2022-09-15T16_03_16_712Z-debug-0.log
0 Answers
Related