Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MODULE_NOT_FOUND when run from CLI #307

Open
dustinpaluch opened this issue May 1, 2020 · 0 comments
Open

MODULE_NOT_FOUND when run from CLI #307

dustinpaluch opened this issue May 1, 2020 · 0 comments

Comments

@dustinpaluch
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant