vigetlabs / blendid

A delicious blend of gulp tasks combined into a configurable asset pipeline and static site builder
MIT License
4.97k stars 682 forks source link

yarn run blendid -- init error code 1 #480

Closed Corviusx closed 6 years ago

Corviusx commented 7 years ago

When i try to run blendid for the first time i got this error:

λ yarn run blendid -- init
yarn run v0.27.5
$ "C:\Users\Corvi\Sedona\node_modules\.bin\blendid" "init"
'C:\Users\Corvi\Sedona\node_modules\.bin\blendid" "init' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

yarn/gulp installed globally node version 6.11.0 tried different pc - same.

mralessio commented 7 years ago

I get the same error with yarn run blendid -- build Windows 7, Node: v6.11.1 (tried also 8.2.1), Yarn: v0.27.5 (tried also RC v0.28.4)

Corviusx commented 7 years ago

Also this is on windows 10, when i use bash from ubuntu subsystem all work fine.

rabarbara commented 7 years ago

Node: v8.2.1
Yarn: v0.27.5
Windows 7

Same issue.

DmitryScaletta commented 7 years ago

Same issue. But this one works fine: "./node_modules/.bin/blendid.cmd" -- build

trickydisco78 commented 7 years ago

I don't get an error but none of the commands passed to blendid work (-- init or --build) it runs the default server every time

Win7 node 6.10.1 yarn 0.27.5

neuotq commented 7 years ago
Node: v8.2.1
Yarn: v0.27.5
gulp: v3.9.1
Windows 10

BTW it can be yarn or gulp bug, after we put command yarn run blendid -- init it converts it to "C:\blahblah\node_modules\.bin\blendid" "init", windows try to run "init" as separate command and cant find it. If yarn convert it to "C:\blahblah\node_modules\.bin\blendid init" or "C:\blahblah\node_modules\.bin\blendid" init all will be fine.

neuotq commented 7 years ago

Just for now we can modify recomendations from readme, and use this Yarn scripts. Add them to package.json

"scripts": {
    "start": "yarn run blendid",
    "build": "./node_modules/.bin/blendid build"
  }

After this, you can run yarn start to start blendid dev enviroment, yarn run build to build project.

benjtinsley commented 6 years ago

@Corviusx it appears @neuotq worked for you. unless there are other issues, i will close out this issue