Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Can't create a new project because of node-sass #1678

Closed
wish-master opened this issue May 29, 2019 · 5 comments
Closed

Can't create a new project because of node-sass #1678

wish-master opened this issue May 29, 2019 · 5 comments

Comments

@wish-master
Copy link

Description

A new project can't be created with buffalo new <preject-name>

Steps to Reproduce the Problem

Just run buffalo new <preject-name> inside a GOPATH

Expected Behavior

A new project creation without any error

Actual Behavior

gyp ERR! cwd /Users/dvishin/Workstation/go/src/github.com/wish-master/vishin/node_modules/node-sass gyp ERR! node -v v12.3.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok Build failed with error code: 1

Info

$ buffalo info
-> Go: Checking installation
✓ The `go` executable was found on your system at: /usr/local/go/bin/go

-> Go: Checking minimum version requirements
✓ Your version of Go, 1.12.3, meets the minimum requirements.

-> Go: Checking GOPATH
✓ You are using Go Modules, so no need to worry about the GOPATH.

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /Users/dvishin/Workstation/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /usr/local/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v12.3.1, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /usr/local/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 6.9.0, meets the minimum requirements.

-> Yarn: Checking installation
✓ The `yarnpkg` executable was found on your system at: /usr/local/bin/yarnpkg

-> Yarn: Checking minimum version requirements
✓ Your version of Yarn, 1.16.0, meets the minimum requirements.

-> PostgreSQL: Checking installation
✘ The `postgres` executable could not be found on your system.
For help setting up your Postgres environment please follow the instructions for you platform at:

https://www.postgresql.org/download/

-> MySQL: Checking installation
✘ The `mysql` executable could not be found on your system.
For help setting up your MySQL environment please follow the instructions for you platform at:

https://www.mysql.com/downloads/

-> SQLite3: Checking installation
✓ The `sqlite3` executable was found on your system at: /usr/bin/sqlite3

-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.24.0, meets the minimum requirements.

-> Cockroach: Checking installation
✘ The `cockroach` executable could not be found on your system.
For help setting up your Cockroach environment please follow the instructions for you platform at:

https://www.cockroachlabs.com/docs/stable/

-> Buffalo: Checking installation
✓ The `buffalo` executable was found on your system at: /usr/local/bin/buffalo

-> Buffalo: Checking minimum version requirements
✓ Your version of Buffalo, v0.14.4, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /Users/dvishin/Workstation/go/src/github.com/wish-master/vishin
Root        /Users/dvishin/Workstation/go/src/github.com/wish-master/vishin
GoPath      /Users/dvishin/Workstation/go
PackagePkg  github.com/wish-master/vishin
ActionsPkg  github.com/wish-master/vishin/actions
ModelsPkg   github.com/wish-master/vishin/models
GriftsPkg   github.com/wish-master/vishin/grifts
WithModules true
Name        vishin
Bin         bin/vishin
VCS         git
WithPop     true
WithSQLite  false
WithDep     false
WithWebpack true
WithNodeJs  true
WithYarn    true
WithDocker  true
WithGrifts  true
AsWeb       true
AsAPI       false
InApp       true
PackageJSON {map[]}

-> Buffalo: config/buffalo-app.toml
name = "vishin"
bin = "bin/vishin"
vcs = "git"
with_pop = true
with_sqlite = false
with_dep = false
with_webpack = true
with_nodejs = true
with_yarn = true
with_docker = true
with_grifts = true
as_web = true
as_api = false

-> Buffalo: config/buffalo-plugins.toml
[[plugin]]
  binary = "buffalo-plugins"
  go_get = "github.com/gobuffalo/buffalo-plugins"

[[plugin]]
  binary = "buffalo-pop"
  go_get = "github.com/gobuffalo/buffalo-pop"

-> Buffalo: go.mod
module github.com/wish-master/vishin

go 1.12

require (
	github.com/codegangsta/negroni v1.0.0 // indirect
	github.com/gobuffalo/buffalo v0.14.4
	github.com/gobuffalo/envy v1.7.0
	github.com/gobuffalo/makr v1.1.5 // indirect
	github.com/gobuffalo/mw-csrf v0.0.0-20190129204204-25460a055517 // indirect
	github.com/gobuffalo/mw-forcessl v0.0.0-20190224202501-6d1ef7ffb276
	github.com/gobuffalo/mw-paramlogger v0.0.0-20190224201358-0d45762ab655
	github.com/gobuffalo/packr v1.25.0
	github.com/gobuffalo/packr/v2 v2.2.0
	github.com/gobuffalo/pop v4.11.0+incompatible
	github.com/gobuffalo/suite v2.6.2+incompatible
	github.com/markbates/grift v1.0.6
	github.com/unrolled/secure v1.0.0
)
@wish-master
Copy link
Author

There is a problem with node-sass version you're using - 4.9.0: sass/node-sass#2632. It should be upgraded to ~4.12.0 via package.json

@kkirsche
Copy link
Contributor

kkirsche commented May 31, 2019

Is there a fix in the repo for this though, regardless of the workaround? As a new user, this was a concerning error.

EDIT: Didn't realize this was the same individual responding to own issue, sorry for any confusion about that

kkirsche added a commit to kkirsche/buffalo that referenced this issue May 31, 2019
@kkirsche
Copy link
Contributor

PR submitted, dev is at 4.9.0, PR updates to 4.12.0

@wish-master
Copy link
Author

@kkirsche I'm new to contribute to this project, I want to made PR by myself but read that I have to open issue before. Next time I'll be make PR right after opening an issue :)

@kkirsche
Copy link
Contributor

Sorry :) — it's my first time using the project, and ran into this on my first try using it, so just wanted to get a fix in quick to avoid having new users encounter this issue and not come back to the project

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants