adminforth 2.4.0-next.4 → 2.4.0-next.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@dotenvx/dotenvx": "^1.34.0",
25
- "adminforth": "latest",
25
+ "adminforth": "next",
26
26
  "express": "latest-4"
27
27
  },
28
28
  "devDependencies": {
@@ -287,10 +287,13 @@ async function installDependencies(ctx, cwd) {
287
287
  const isWindows = process.platform === 'win32';
288
288
  const npmCmd = isWindows ? 'npm.cmd' : 'npm';
289
289
 
290
+ const nodeBinary = process.execPath;
291
+ const npmPath = path.join(path.dirname(nodeBinary), npmCmd);
292
+ console.log("npmPath",`${nodeBinary} ${npmPath} install`);
290
293
  const customDir = ctx.customDir;
291
294
  const res = await Promise.all([
292
- await execAsync(`${npmCmd} install`, { cwd, env: { PATH: process.env.PATH } }),
293
- await execAsync(`${npmCmd} install`, { cwd: customDir, env: { PATH: process.env.PATH } }),
295
+ await execAsync(`${nodeBinary} ${npmPath} install`, { cwd, env: { PATH: process.env.PATH } }),
296
+ await execAsync(`${nodeBinary} ${npmPath} install`, { cwd: customDir, env: { PATH: process.env.PATH } }),
294
297
  ]);
295
298
  // console.log(chalk.dim(`Dependencies installed in ${cwd} and ${customDir}: \n${res[0].stdout}${res[1].stdout}`));
296
299
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.4.0-next.4",
3
+ "version": "2.4.0-next.6",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",