Error: Cannot find module 'libnpx'

We get the location of libnpx from global-dirs. Can you please:

  1. npm install global-dirs@1.0.0 somewhere
  2. Run node -e "console.log(require('global-dirs'))" and paste the output
原文地址:https://www.cnblogs.com/ViokingJava/p/12578683.html