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

Error when using the help flag #3

Open
kospol opened this issue Aug 4, 2017 · 0 comments
Open

Error when using the help flag #3

kospol opened this issue Aug 4, 2017 · 0 comments

Comments

@kospol
Copy link

kospol commented Aug 4, 2017

$ vue-beautify -h
module.js:487
    throw err;
    ^

Error: Cannot find module '../../package.json'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at usage (/usr/local/lib/node_modules/vue-beautify/src/cli.js:225:28)
    at exports.interpret (/usr/local/lib/node_modules/vue-beautify/src/cli.js:175:9)
    at Object.<anonymous> (/usr/local/lib/node_modules/vue-beautify/src/cli.js:219:5)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)

It's easily fixable, go to cls.js:225 and change the line:
scriptName + '@' + require('../../package.json').version,
to
scriptName + '@' + require('../package.json').version,

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