gonzales-pe icon indicating copy to clipboard operation
gonzales-pe copied to clipboard

MODULE_NOT_FOUND when run from CLI

Open dustinpaluch opened this issue 4 years ago • 0 comments

Installed globally with

npm install -g git://github.com/tonyganch/gonzales-pe.git#dev

Ran gonzales test.scss and got this error:

dustinpaluch@catalyst ~/s/gonzales-pe (dev)> gonzales test.scss                                                                                                                                                                                                                                                     11:04:52
internal/modules/cjs/loader.js:330
      throw err;
      ^

Error: Cannot find module '/usr/local/lib/node_modules/gonzales-pe/lib/gonzales'. Please verify that the package.json has a valid "main" entry
    at tryPackage (internal/modules/cjs/loader.js:322:19)
    at Function.Module._findPath (internal/modules/cjs/loader.js:683:18)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1007:27)
    at Function.Module._load (internal/modules/cjs/loader.js:890:27)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/gonzales-pe/bin/gonzales.js:6:16)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32) {
  code: 'MODULE_NOT_FOUND',
  path: '/usr/local/lib/node_modules/gonzales-pe/package.json',
  requestPath: '..'
}

Node v14.1.0 Catalina 10.15.3

dustinpaluch avatar May 01 '20 15:05 dustinpaluch