Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Installing jscs locally doesn't work. #41

Closed
christianvuerings opened this issue May 6, 2014 · 2 comments
Closed

Installing jscs locally doesn't work. #41

christianvuerings opened this issue May 6, 2014 · 2 comments

Comments

@christianvuerings
Copy link

To reproduce

  1. Remove jscs globally - npm uninstall -g jscs
  2. Add jscs to package.json - "jscs": "1.4.1"
  3. Run npm install
  4. Run jscs .

Output

Error: Cannot find module '../../presets/jquery.json'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/christian/Projects/calcentral/node_modules/jscs/lib/options/preset.js:2:13)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

Installing it globally (with -g) works correctly.

@gustavohenke
Copy link
Member

Known problem, fixed as of jscs 1.4.3.
I'll probably issue a new release with jscs@1.4.3 as the minimal version, so such problem no longer occurs.

@gustavohenke
Copy link
Member

Released v0.4.3.
Please update grunt-jscs-checker.

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

No branches or pull requests

2 participants