File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ class Install extends ArboristWorkspaceCmd {
131131 args = args . filter ( a => resolve ( a ) !== this . npm . prefix )
132132
133133 // `npm i -g` => "install this package globally"
134- if ( isGlobalInstall && where === globalTop && ! args . length ) {
134+ if ( isGlobalInstall && ! args . length ) {
135135 args = [ '.' ]
136136 }
137137
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ t.test('exec commands', async t => {
129129 await npm . exec ( 'install' )
130130 } )
131131
132- await t . test ( 'should not self-install package if prefix is the same as PWD ' , async t => {
132+ await t . test ( 'should not self-install package if prefix is the same as CWD ' , async t => {
133133 let REIFY_CALLED_WITH = null
134134 const { npm } = await loadMockNpm ( t , {
135135 mocks : {
You can’t perform that action at this time.
0 commit comments