Open dmint789 opened 5 days ago
Good idea, it's a "Good first issue" if someone is interested in implementing it. You can start by looking at install_global
function in cli/tools/installer.rs
and following what install_local
is doing to figure out if a prefix should be added.
This would be my first PR but I am happy to give it a try if that's alright!
@SatanshuMishra please do
When I try to install a package globally without specifying the source (e.g.
deno install -g concurrently
), it throws this error: 'error: Module not found "/path/to/current/dir/package_name"'. Instead, it should show the same type of hint asdeno add [package without a source specifier]
(e.g. error: concurrently is missing a prefix. Did you meandeno add npm:concurrently
?).