Merge pull request #8973 from diogoazevedos/npm-7-support

Add support for npm 7
This commit is contained in:
Mike McQuaid 2020-10-26 11:36:30 +00:00 committed by GitHub
commit 1f6c1e9749
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -44,6 +44,9 @@ module Language
pack = pack_for_installation pack = pack_for_installation
# npm 7 requires that these dirs exist before install
(libexec/"lib").mkpath
# npm install args for global style module format installed into libexec # npm install args for global style module format installed into libexec
args = %W[ args = %W[
-ddd -ddd

View File

@ -25,7 +25,7 @@ describe Language::Node do
end end
describe "#std_npm_install_args" do describe "#std_npm_install_args" do
npm_install_arg = "libexec" npm_install_arg = Pathname("libexec")
npm_pack_cmd = "npm pack --ignore-scripts" npm_pack_cmd = "npm pack --ignore-scripts"
it "raises error with non zero exitstatus" do it "raises error with non zero exitstatus" do