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

No such directory "@commitlint/utils/xo" error on Node 4 and 6 #259

Closed
3 of 4 tasks
ChristianMurphy opened this issue Jan 31, 2018 · 4 comments
Closed
3 of 4 tasks
Labels

Comments

@ChristianMurphy
Copy link
Contributor

ChristianMurphy commented Jan 31, 2018

Expected Behavior

Installs normally

Current Behavior

npm ERR! argv "/home/travis/.nvm/versions/node/v6.12.3/bin/node" "/home/travis/.nvm/versions/node/v6.12.3/bin/npm" "install"
npm ERR! node v6.12.3
npm ERR! npm  v3.10.10
npm ERR! path /home/travis/build/json-schema-keyref/node_modules/@commitlint/utils/xo
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/home/travis/build/json-schema-keyref/node_modules/@commitlint/utils/xo'
npm ERR! enoent ENOENT: no such file or directory, chmod '/home/travis/build/json-schema-keyref/node_modules/@commitlint/utils/xo'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Steps to Reproduce (for bugs)

  1. Start with a Node.js version at or below 6.x
  2. Run npm install @commitlint/cli

Context

This is causing CI running on Node 4 and 6 to fail.

Your Environment

Linux with Node 6: https://travis-ci.org/ChristianMurphy/json-schema-keyref/jobs/335754857
Linux with Node 4: https://travis-ci.org/ChristianMurphy/json-schema-keyref/jobs/335754858
Windows with Node 6: https://ci.appveyor.com/project/ChristianMurphy/postcss-combine-duplicated-selectors/build/job/tcynw7favtr068en

Executable Version
commitlint --version 6.0.3
git --version 2.16.1
node --version 6.12.3
@marionebl
Copy link
Contributor

Thanks for reporting, I'll investigate right away.

@marionebl marionebl added the bug label Jan 31, 2018
marionebl added a commit that referenced this issue Jan 31, 2018
@marionebl
Copy link
Contributor

Released 6.0.4 that fixes this issue, sorry for the inconvenience!

@ChristianMurphy
Copy link
Contributor Author

Thanks @marionebl! 🙇

@marionebl
Copy link
Contributor

@commitlint/utils should not have been in the dependecy tree in the first place, but slipped in there via @commitlint/to-lines. 6.0.5 removes it from the production dep tree again.

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

No branches or pull requests

2 participants