GithubHelp home page GithubHelp logo

does not work with node 10 about cli HOT 15 CLOSED

netlify avatar netlify commented on July 21, 2024
does not work with node 10

from cli.

Comments (15)

XhmikosR avatar XhmikosR commented on July 21, 2024 7

@bcomnes: you should mark the npm package as deprecated then...

from cli.

bcomnes avatar bcomnes commented on July 21, 2024 6

This cli is no longer supported, please switch to https://github.com/netlify/netlifyctl

from cli.

singuista avatar singuista commented on July 21, 2024 5

SO proud to say that one of my Junior dev's found her own solution to this. Just run these commands in sequence in the your project's directory:
rm -fr node_modules
rm -fr package-lock.json
npm cache clean --force
npm install

note: it's npm cache that's causing the biggest issues in our situation. Hope this helps

from cli.

bcomnes avatar bcomnes commented on July 21, 2024 1

This one.

from cli.

deadcoder0904 avatar deadcoder0904 commented on July 21, 2024 1

@bcomnes Suggestion: Just make it as simple as the Now CLI or Surge CLI. No need for netlify deploy and all.

Just simple command netlify & it will deploy current directory then ask for site name, etc.. in the terminal.

Why waste so much time on architecture when your competitors have already solved the same problem? I prefer both NOW & SURGE CLIs but I ❤️ Netlify & CLI can be a huge boon

from cli.

bcomnes avatar bcomnes commented on July 21, 2024

Agreed, I'll look into to doing that. It would be nice to find a way to ship the go bin as an npm package so people can switch over to that without integrating a peer dep.

from cli.

zeusdeux avatar zeusdeux commented on July 21, 2024

@bcomnes As a first step though, I agree that it would be super helpful to mark the npm package as deprecated and provide a link out to the new cli in the deprecation message.

from cli.

alexrussell avatar alexrussell commented on July 21, 2024

Now this doesn't work in Node 10, you really had ought to update your docs to use netlifyctl and provide info for the "old" netlify-cli package as a fallback. Or at the very least make the intended deprecation and fact that you ought to use netlifyctl if you're on Node 10+ a lot more obvious.

from cli.

jcoby avatar jcoby commented on July 21, 2024

In addition to marking the npm package as deprecated a bigger notice in the README would be helpful as well. I had to read it several times before I noticed it included a deprecation notice.

from cli.

bcomnes avatar bcomnes commented on July 21, 2024

Recent development, we are revisiting plans around the Node netlify api lib and CLI. Will follow up with more details asap, but we are thinking of resurrecting a JS/Node cli.

from cli.

leandroti7 avatar leandroti7 commented on July 21, 2024

Thanks so much guy, you helpout me !!! # @singuista

from cli.

terrancecorley avatar terrancecorley commented on July 21, 2024

Any updates on this? Should I uninstall the old cli and install this new cli going forward?

from cli.

bcomnes avatar bcomnes commented on July 21, 2024

Apologies for the delayed response.

We are working on/exploring a revamped node-cli with a new architecture that will be flexible enough for some really exciting developments we have coming down the pipe. That won't be ready for a bit, so in the meantime, I'll go ahead and do a little bit of cleanup regarding the lock files mentioned by @singuista and cut a patch release to see if that fixes some of the showstoppers on this codebase.

Also github.com/netlify/netlifyctl is a viable and working option, however I do sympathize that go tooling doesn't have the cleanest integration path that npm published tools have with most web projects that are already using npm/yarn.

Hold tight!

If you have a moment as well, I would love to hear some feedback what you want most out of the cli experience. Trying to avoid the web UI and use the console only? Custom deploys from private CI environments? Advanced automation integrations?

from cli.

bcomnes avatar bcomnes commented on July 21, 2024

Ok npm install netlify-cli@latest -g

🎉[email protected] 🎉

Tested on node 10, can confirm its working.

from cli.

zeusdeux avatar zeusdeux commented on July 21, 2024

@bcomnes so, which cli out of the two is deprecated?

from cli.

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.