Environment: centos8
Problems encountered during NPM installation
Node -v displays normally. NPM -v displays the preceding error message
The reason is that decompressing the file causes the software to fail. Tar works
Fix problems:
Delete the original NPM and NPX
Run the ln -s.. /lib/node_modules/ NPM /bin/ NPM -cli.js. / NPM Run the ln -s.. /lib/node_modules/npm/bin/npx-cli.js ./npx