获取项目根目录路径var prPath = require('pr-root') prPath.getRootPath('package.json'); prPath.getRootPath('node_modules');2 keywords3 dependents3 versionsprojectpath@infinitebrahmanuniverse/nolb-pr-@everything-registry/sub-chunk-2466@zalastax/nolb-pr-1.0.25 years ago1.0.15 years ago1.0.05 years ago