Coder Social home page Coder Social logo

Failing to load eslint about check-build HOT 5 OPEN

fgribreau avatar fgribreau commented on July 17, 2024
Failing to load eslint

from check-build.

Comments (5)

FGRibreau avatar FGRibreau commented on July 17, 2024

Hello @rplopes, it's linked with the upgrade to npm3, since npm3 flatten node directories I did not came up with a fix right know but I'm looking forward to it

from check-build.

rplopes avatar rplopes commented on July 17, 2024

Hi @FGRibreau. Thank you for the reply. However, I'm still using npm 2:

$ npm -v
2.14.7

Is this behaviour to be expected with this version of npm?

from check-build.

FGRibreau avatar FGRibreau commented on July 17, 2024

Is /node_modules/.bin/eslint available ? Did you try to completly remove node_modules and then start an npm install again?

from check-build.

rplopes avatar rplopes commented on July 17, 2024

Yes, and running it from the node_modules directory results in the same behaviour as running it as described above:

$ node_modules/.bin/eslint .
$ echo $?
0

Removing the node_modules directory and running npm install again results in the same error: check-build will still try to load eslint from node_modules/check-build/node_modules/.bin/eslint and fail with No such file or directory.

from check-build.

FGRibreau avatar FGRibreau commented on July 17, 2024

We just need to update check-build eslint.js with require.resolve('eslint') to make it work

from check-build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.