npm run lint fails

Bug #1597235 reported by Yujun Zhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eslint-config-openstack
New
Undecided
Unassigned

Bug Description

```
➜ eslint-config-openstack git:(master) npm run lint

> eslint-config-openstack@2.0.0 lint /Users/yujunz/Develop/eslint-config-openstack
> eslint ./

Cannot find module 'eslint-config-openstack' from '/Users/yujunz/Develop/eslint-config-openstack/node_modules'
Referenced from: /Users/yujunz/Develop/.eslintrc
Error: Cannot find module 'eslint-config-openstack' from '/Users/yujunz/Develop/eslint-config-openstack/node_modules'
Referenced from: /Users/yujunz/Develop/.eslintrc
    at Function.module.exports [as sync] (/Users/yujunz/Develop/eslint-config-openstack/node_modules/resolve/lib/sync.js:33:11)
    at resolve (/Users/yujunz/Develop/eslint-config-openstack/node_modules/eslint/lib/config/config-file.js:416:38)
    at load (/Users/yujunz/Develop/eslint-config-openstack/node_modules/eslint/lib/config/config-file.js:435:24)
    at /Users/yujunz/Develop/eslint-config-openstack/node_modules/eslint/lib/config/config-file.js:355:36
    at Array.reduceRight (native)
    at applyExtends (/Users/yujunz/Develop/eslint-config-openstack/node_modules/eslint/lib/config/config-file.js:338:28)
    at Object.load (/Users/yujunz/Develop/eslint-config-openstack/node_modules/eslint/lib/config/config-file.js:462:22)
    at loadConfig (/Users/yujunz/Develop/eslint-config-openstack/node_modules/eslint/lib/config.js:67:33)
    at getLocalConfig (/Users/yujunz/Develop/eslint-config-openstack/node_modules/eslint/lib/config.js:129:23)
    at Config.getConfig (/Users/yujunz/Develop/eslint-config-openstack/node_modules/eslint/lib/config.js:223:22)

npm ERR! Darwin 15.5.0
npm ERR! argv "/Users/yujunz/.nvm/versions/node/v6.2.2/bin/node" "/Users/yujunz/.nvm/versions/node/v6.2.2/bin/npm" "run" "lint"
npm ERR! node v6.2.2
npm ERR! npm v3.9.5
npm ERR! code ELIFECYCLE
npm ERR! eslint-config-openstack@2.0.0 lint: `eslint ./`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the eslint-config-openstack@2.0.0 lint script 'eslint ./'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the eslint-config-openstack package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! eslint ./
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs eslint-config-openstack
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls eslint-config-openstack
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/yujunz/Develop/eslint-config-openstack/npm-debug.log
```

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.