Wednesday, April 5, 2017

Node - Bind Node or Gulp to System Path

Common error in this case:

'gulp' is not recognized as an internal or external command, operable program or batch file.
Solution:

PATH=%PATH%;C:\Users\**<username>**\AppData\Roaming\npm

Node Sass could not find a binding for your current environment :
Solution:
> npm rebuild node-sass

First Time or If the project has added NPM run:
npm install
npm install gulp -g
Möjligen också installera yarn.
Kör Remember:
Vid Deploy: Skriv: yarn run build 
Vid Test: Skriv:  yarn run dev
NO gulp command found: If nothing works  reinstall nodejs and then reinstall with gulp. However gulp doesnt support the new nodejs so NVM needs to set older version.

No comments:

Post a Comment