fix: run yarn locally
This commit is contained in:
		| @@ -143,7 +143,7 @@ const tasks = { | ||||
|    */ | ||||
|   installYarn() { | ||||
|     ora.text = 'Installing Yarn...' | ||||
|     return exec.stdout('npm', ['install', '-g', 'yarn'], { | ||||
|     return exec.stdout('npm', ['install', 'yarn'], { | ||||
|       cwd: installDir | ||||
|     }).then(results => { | ||||
|       ora.text = 'Yarn installed successfully.' | ||||
| @@ -155,7 +155,7 @@ const tasks = { | ||||
|    */ | ||||
|   installDependencies() { | ||||
|     ora.text = 'Installing Wiki.js npm dependencies...' | ||||
|     return exec.stdout('yarn', ['install', '--production', '--ignore-optional'], { | ||||
|     return exec.stdout('./node_modules/.bin/yarn', ['install', '--production', '--ignore-optional'], { | ||||
|       cwd: installDir | ||||
|     }).then(results => { | ||||
|       ora.text = 'Wiki.js npm dependencies installed successfully.' | ||||
|   | ||||
							
								
								
									
										2
									
								
								npm/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								npm/package-lock.json
									
									
									
										generated
									
									
									
								
							| @@ -1,6 +1,6 @@ | ||||
| { | ||||
|   "name": "wiki.js", | ||||
|   "version": "1.0.1", | ||||
|   "version": "1.0.2", | ||||
|   "lockfileVersion": 1, | ||||
|   "dependencies": { | ||||
|     "amp": { | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| { | ||||
|   "name": "wiki.js", | ||||
|   "version": "1.0.1", | ||||
|   "version": "1.0.2", | ||||
|   "description": "A modern, lightweight and powerful wiki app built on NodeJS, Git and Markdown", | ||||
|   "main": "install.js", | ||||
|   "scripts": { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user