Code Monkey home page Code Monkey logo

Comments (13)

faraazahmad avatar faraazahmad commented on May 30, 2024 86

So i just ran asdf reshim nodejs and global packages now work. What could be the reason? Should i open an issue for it?

from asdf-nodejs.

axelson avatar axelson commented on May 30, 2024 10

Are you supposed to run asdf reshim nodejs after installing a global package? Or is that supposed to be happening automatically somehow?

from asdf-nodejs.

TheNicholasNick avatar TheNicholasNick commented on May 30, 2024 8

oh man! - glad this is here, has held me up for the better part of an hour tracking down what the issue is.
basically make sure plugin-add as "nodejs" and it just works

asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git

Love having ONE version manager for ruby, node, erlang, elixir - thanks a lot :)

from asdf-nodejs.

davelnewton avatar davelnewton commented on May 30, 2024 3

Re-shimming does not work for me, under OS X.

I installed create-react-native-app via:

npm i -g create-react-native-app

in a .tool-versionsed directory.

  • which node and which npm show I'm running the asdf bins.
  • npm list -g shows it installed in the proper asdf lib directory.
  • npm bin shows only the local node_modules/.bin directory.
  • The binary for create-react-native-app is in the asdf installs directory.

Hrm. I'm leaving the above for completeness--the only thing that isn't working is zsh executable auto-complete: if I type the full command name it runs--but not sure how.

from asdf-nodejs.

bsedat avatar bsedat commented on May 30, 2024 1

@faraazahmad I think your error is a separate bug - it might be better off in a new Github issue.

from asdf-nodejs.

axelson avatar axelson commented on May 30, 2024 1

Okay, thanks! Hopefully that'll work for me too.

from asdf-nodejs.

ndarilek avatar ndarilek commented on May 30, 2024

This just bit me as well. Seems like the postinstall script could guess the plugin name by looking at the installation directory. Unfortunately I'm not a competent enough Bash scripter to add that in. I changed my plugin's name for now, but it wasn't quite as seamless of an experience as I might have hoped. Also, if ASDF lets you install plugins under any name, perhaps it could/does inject that name into the shell script's environment so it can be used in commands, as is done here.

Either way, only a minor wrinkle. Nice project.

from asdf-nodejs.

mikebaldry avatar mikebaldry commented on May 30, 2024

Took me half an hour of head scratching to find out why it was failing. Thanks. Be nice to get this updated! Why do you even need to name plugins? Can't they just pick up the name from the plugin...

from asdf-nodejs.

faraazahmad avatar faraazahmad commented on May 30, 2024

@SoreGums i did the following

asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf install nodejs 9.5.0

But the problem still remains. for example, when i globally install browser-sync i get this

npm WARN lifecycle The node binary used for scripts is /home/faraaz/.asdf/shims/node but npm is using /home/faraaz/.asdf/installs/nodejs/9.5.0/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

from asdf-nodejs.

faraazahmad avatar faraazahmad commented on May 30, 2024

@axelson I just ran it once and everything now works as I expect it to, I never had to re run that since.

from asdf-nodejs.

Stratus3D avatar Stratus3D commented on May 30, 2024

@bsedat is this still an issue?

from asdf-nodejs.

Stratus3D avatar Stratus3D commented on May 30, 2024

@bsedat can you see if this PR fixes your issue? #150

from asdf-nodejs.

Stratus3D avatar Stratus3D commented on May 30, 2024

Closing since I think #150 fixed this.

from asdf-nodejs.

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.