mirror of
https://github.com/ershisan99/go-npm.git
synced 2025-12-17 05:09:30 +00:00
fix "EXDEV: cross-device link not permitted, rename 'bin\starlit.exe' ->
'C:\npm\prefix\bin\starlit.exe'"
This commit is contained in:
@@ -47,6 +47,6 @@ describe('verifyAndPlaceBinary()', () => {
|
||||
|
||||
verifyAndPlaceBinary('command', './bin', callback);
|
||||
|
||||
expect(fs.renameSync).toHaveBeenCalledWith(path.join('bin', 'command'), path.sep + path.join('usr', 'local', 'bin', 'command'));
|
||||
expect(fs.copyFileSync).toHaveBeenCalledWith(path.join('bin', 'command'), path.sep + path.join('usr', 'local', 'bin', 'command'));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user