diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-08-28 03:31:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-28 02:31:41 +0000 |
commit | 3dba98532a3054e4e74bb1b3304e4cb809d284dc (patch) | |
tree | 708fdc7a6f5663565fc585c74c247f1df4b671d2 /cli | |
parent | 1a6fd38f2f7b016714ec313ce234fd5356aa956a (diff) |
fix: replace `npm install` hint with `deno install` hint (#25244)
Needed for https://github.com/denoland/deno/pull/25213.
With Deno 2, we should suggest using `deno install` instead of `npm
install`.
Diffstat (limited to 'cli')
-rw-r--r-- | cli/npm/byonm.rs | 7 | ||||
-rw-r--r-- | cli/resolver.rs | 2 |
2 files changed, 2 insertions, 7 deletions
diff --git a/cli/npm/byonm.rs b/cli/npm/byonm.rs index a0f23fc66..e62650d8a 100644 --- a/cli/npm/byonm.rs +++ b/cli/npm/byonm.rs @@ -307,14 +307,9 @@ impl CliNpmResolver for ByonmCliNpmResolver { concat!( "Could not find \"{}\" in a node_modules folder. ", "Deno expects the node_modules/ directory to be up to date. ", - "Did you forget to run `{}`?" + "Did you forget to run `deno install`?" ), alias, - if *crate::args::DENO_FUTURE { - "deno install" - } else { - "npm install" - } ); } diff --git a/cli/resolver.rs b/cli/resolver.rs index bd88ecd9a..57c05b532 100644 --- a/cli/resolver.rs +++ b/cli/resolver.rs @@ -146,7 +146,7 @@ impl CliNodeResolver { concat!( "Could not resolve \"{}\", but found it in a package.json. ", "Deno expects the node_modules/ directory to be up to date. ", - "Did you forget to run `npm install`?" + "Did you forget to run `deno install`?" ), specifier )); |