fix: run yarn locally

This commit is contained in:
NGPixel
2017-07-23 13:48:56 -04:00
parent 78c875503c
commit 9848f600e9
5 changed files with 9 additions and 6 deletions

View File

@@ -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
View File

@@ -1,6 +1,6 @@
{
"name": "wiki.js",
"version": "1.0.1",
"version": "1.0.2",
"lockfileVersion": 1,
"dependencies": {
"amp": {

View File

@@ -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": {