fix(npm cache): now correctly setting it when preparing npm
This commit is contained in:
parent
ef7d85e7c4
commit
6ef6446022
@ -62,7 +62,6 @@ export class NpmciNodeJsManager {
|
|||||||
await bash('npm install -g npm');
|
await bash('npm install -g npm');
|
||||||
await bash('node -v');
|
await bash('node -v');
|
||||||
await bash('npm -v');
|
await bash('npm -v');
|
||||||
await bash(`npm config set cache ${paths.NpmciCacheDir} --global `);
|
|
||||||
|
|
||||||
// lets look for further config
|
// lets look for further config
|
||||||
const config = await this.npmciRef.npmciConfig.getConfig();
|
const config = await this.npmciRef.npmciConfig.getConfig();
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import * as plugins from './mod.plugins';
|
import * as plugins from './mod.plugins';
|
||||||
|
import * as paths from '../npmci.paths';
|
||||||
|
|
||||||
import { logger } from '../npmci.logging';
|
import { logger } from '../npmci.logging';
|
||||||
import { bash, bashNoError, nvmAvailable } from '../npmci.bash';
|
import { bash, bashNoError, nvmAvailable } from '../npmci.bash';
|
||||||
@ -73,6 +74,10 @@ export class NpmciNpmManager {
|
|||||||
|
|
||||||
// lets save it to disk
|
// lets save it to disk
|
||||||
plugins.smartfile.memory.toFsSync(npmrcFileString, '/root/.npmrc');
|
plugins.smartfile.memory.toFsSync(npmrcFileString, '/root/.npmrc');
|
||||||
|
|
||||||
|
// lets set the cache directory
|
||||||
|
await bash(`npm config set cache ${paths.NpmciCacheDir} --global `);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user