metabase compilation error

Execute the following command in the metabase project directory

1, the installation package compiled

./bin/build

Given as follows:

$ ./bin/build
Tagging uberjar with version 'v0.26.0-snapshot 36f38e1 master 2017-09-06'...
Running 'yarn' to download javascript dependencies...
yarn install v1.0.1
$ echo $npm_execpath | grep -q yarn || echo '\033[0;33mSorry, npm is not supported. Please use Yarn (https://yarnpkg.com/).\033[0m'
error Couldn't find the binary echo $npm_execpath | grep -q yarn || echo '\033[0;33mSorry, npm is not supported. Please use Yarn (https://yarnpkg.com/).\033[0m'
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

metabase can be compiled on linux, requires nodejs version is 8.4.0, the nodejs the windows had been replaced in this version, also compiled by the

Nodejs install the latest version 8.4.0
executed in cmd, install Chocolatey, the following commands use powershell, the computer does not need to install it:

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

Then perform the installation nodejs

 cinst nodejs

 

Guess you like

Origin blog.csdn.net/zwahut/article/details/90603485