Comments (13)
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.
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.
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.
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-versions
ed directory.
which node
andwhich 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 localnode_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.
@faraazahmad I think your error is a separate bug - it might be better off in a new Github issue.
from asdf-nodejs.
Okay, thanks! Hopefully that'll work for me too.
from asdf-nodejs.
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.
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.
@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.
@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.
@bsedat is this still an issue?
from asdf-nodejs.
@bsedat can you see if this PR fixes your issue? #150
from asdf-nodejs.
Closing since I think #150 fixed this.
from asdf-nodejs.
Related Issues (20)
- Issues in running test scripts from Eclipse with Appium shim HOT 1
- Resolving LTS version only outputs major number HOT 4
- npm shim should work without $HOME HOT 5
- Unable to install 18.18.1 HOT 1
- import-release-team-keyring not found HOT 1
- NodeJS 18.18.2 is not in the list! HOT 2
- Can't install 21.0.0 HOT 4
- bug: asdf cannot resolve config paths with whitespace in them HOT 2
- Last version is 20.5.1 but Node is already at 21.0.2 HOT 1
- asdf cant find definition for v18.19.0 HOT 2
- Dependency on nvm HOT 1
- How to install Nodejs latest LTS version? HOT 1
- default-npm-packages support registry
- asdf: Warn: You have configured asdf to preserve downloaded files (with always_keep_download=yes or --keep-download). But asdf: Warn: the current plugin (nodejs) does not support that. Downloaded files will not be preserved. HOT 2
- not using project .tool-versions to set node version in tmux
- Is it possible to show the LTS version in the list of versions right after installing the plugin?
- Cannot install node 21.7.x HOT 2
- Cannot install latest lts [email protected] HOT 2
- feat: Node.js nightly (v22) install
- WARNING: node-v21.7.2-darwin-arm64 is in LTS Maintenance mode and nearing its end of life. It only receives *critical* security updates, *critical* bug fixes and documentation updates. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asdf-nodejs.