metabase编译报错

在metabase 工程目录下执行如下命令

1、编译安装包

./bin/build

报错如下:

$ ./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在linux可以编译,要求nodejs版本是8.4.0,把windows上的nodejs也换成这个版本后,编译也通过了

安装nodejs最新版8.4.0
在cmd下执行,安装Chocolatey,下面的命令用到powershell,电脑没有的需要安装一下:

@"%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"

再执行,安装nodejs

 cinst nodejs

 

你可能感兴趣的:(NoSQL数据库,metabase)