Closed aliciakozlowski closed 5 years ago
It looks like we have a bug and make does not install the frontend dependencies.
Please try:
make js-dependencies
make serve
Tried to run through it again, still running into trouble...
alicia➜~» go get github.com/src-d/landing/... [11:53:20]
alicia➜~» cd $GOPATH/src/github.com/src-d/landing [11:53:36]
alicia➜github.com/src-d/landing(master)» make build [11:53:59]
/Users/aliciakozlowski/go/src/github.com/src-d/landing/.hugo/hugo --config=hugo.config.yaml --destination=public --baseURL=//sourced.tech
Started building sites ...
Built site for language en:
0 draft content
0 future content
0 expired content
8 regular pages created
8 other pages created
0 non-page files copied
0 paginator pages created
0 categories created
1 classes created
total in 14 ms
alicia➜github.com/src-d/landing(master)» make js-dependencies [11:54:17]
yarn install --force
yarn install v1.10.1
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 📃 Rebuilding all packages...
[1/2] ⢀ fsevents
warning Error running install script for optional dependency: "/Users/aliciakozlowski/go/src/github.com/src-d/landing/node_modules/fsevents: Command failed.
Exit code: 1
Command: node install
Arguments:
Directory: /Users/aliciakozlowski/go/src/github.com/src-d/landing/node_modules/fsevents
Output:
----------------- a lot of text -------------------
4 warnings and 1 error generated.
make[1]: *** [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/aliciakozlowski/go/src/github.com/src-d/landing/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/Cellar/node/10.11.0/bin/node" "/Users/aliciakozlowski/go/src/github.com/src-d/landing/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/aliciakozlowski/go/src/github.com/src-d/landing/node_modules/node-sass
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
make: *** [js-dependencies] Error 1
alicia➜github.com/src-d/landing(master)» LANDING_URL=//localhost PORT=8081 make js-dependencies [11:56:03]
yarn install --force
yarn install v1.10.1
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 📃 Rebuilding all packages...
[1/2] ⢀ fsevents
warning Error running install script for optional dependency: "/Users/aliciakozlowski/go/src/github.com/src-d/landing/node_modules/fsevents: Command failed.
Exit code: 1
Command: node install
Arguments:
Directory: /Users/aliciakozlowski/go/src/github.com/src-d/landing/node_modules/fsevents
Output:
----------------- a lot of the same text -------------------
4 warnings and 1 error generated.
make[1]: *** [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/aliciakozlowski/go/src/github.com/src-d/landing/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/Cellar/node/10.11.0/bin/node" "/Users/aliciakozlowski/go/src/github.com/src-d/landing/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/aliciakozlowski/go/src/github.com/src-d/landing/node_modules/node-sass
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
make: *** [js-dependencies] Error 1
alicia➜github.com/src-d/landing(master)» LANDING_URL=//localhost PORT=8081 make serve [12:00:29]
rm -rf /Users/aliciakozlowski/go/src/github.com/src-d/landing/.hugo
Downloading https://github.com/spf13/hugo/releases/download/v0.21/hugo_0.21_macOS-64bit.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 151 0 151 0 0 291 0 --:--:-- --:--:-- --:--:-- 290
100 618 0 618 0 0 862 0 --:--:-- --:--:-- --:--:-- 862
100 4435k 100 4435k 0 0 1816k 0 0:00:02 0:00:02 --:--:-- 3727k
yarn run serve
yarn run v1.10.1
$ concurrently --kill-others "yarn run webpack-watcher" "make hugo-server" "yarn run api-run"
$ webpack --config=webpack.config.js --watch --debug --verbose --progress --colors
[2]
[2] $ go run api/api.go
[0] 0% compiling
---------------loads 100% ----------------------------
[1] Static file changes detected
[1] 2018-10-11 12:02 +0200
[1] Syncing /js/bundle.js to /Users/aliciakozlowski/go/src/github.com/src-d/landing/public/
[1] Syncing /js/bundle.js.map to /Users/aliciakozlowski/go/src/github.com/src-d/landing/public/
exit
^Cmake: *** [serve] Interrupt: 2
[2] signal: interrupt
[1] make[1]: *** [hugo-server] Interrupt: 2
[0] yarn run webpack-watcher exited with code null
--> Sending SIGTERM to other processes..
After trying to run the make serve
again this error came up multiple times:
ERROR in ./~/css-loader?{"modules":false}!./~/postcss-loader/lib?{}!./~/sass-loader/lib/loader.js!./~/lightbox2/dist/css/lightbox.css
[0] Module build failed: Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (64)
[0] For more information on which environments are supported please see:
[0] https://github.com/sass/node-sass/releases/tag/v4.5.3
ERROR in ./~/lightbox2/dist/css/lightbox.css
[0] Module build failed: ModuleBuildError: Module build failed: Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (64)
[0] For more information on which environments are supported please see:
[0] https://github.com/sass/node-sass/releases/tag/v4.5.3
I was able to build landing with this changes: https://github.com/src-d/landing/pull/292
hi @ConnorBrereton !
it doesn't "hung", it's listening for changes. You can try to open http://127.0.0.1:8081/ and see that it works.
go version go1.11.1 darwin/amd64
1.10.1
make serve
command shows an error: