@vyr/cli 0.0.4 → 0.0.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.
@@ -30,10 +30,12 @@ module.exports = {
30
30
 
31
31
  execSync(['npm', 'install', ...packagesFromArgs].join(' '), { cwd: temp })
32
32
 
33
+ if (fs.existsSync(join(temp, 'node_modules')) === false) return console.log('安装失败,请检查文件夹是否为只读!', temp)
34
+
33
35
  for (const name of packagesFromArgs) {
34
36
  const dir = join(temp, 'node_modules', name)
35
37
  if (fs.existsSync(dir) === false) {
36
- console.log(name, '安装失败,请检查后重试!')
38
+ console.log(name, '安装失败,请检查后重试!', temp)
37
39
  continue
38
40
  }
39
41
  const dest = join(extension, name.replaceAll('/', '-'))