# Sage-8.5.1 - gulp watch issue

**URL:** https://discourse.roots.io/t/sage-8-5-1-gulp-watch-issue/14393
**Category:** sage
**Tags:** sage8, gulp
**Created:** 2018-12-18T14:39:42Z
**Posts:** 4

## Post 1 by @sbcMeg — 2018-12-18T14:39:42Z

I’m working on a website that is running sage 8.5.1, and I’m running into some issues with gulp watch.

I’ve done all of the following:  
Install gulp and Bower globally with npm install -g gulp bower  
Navigate to the theme directory, then run npm install  
Run bower install

But when I run gulp watch, I get these issues:  
Error: Cannot find module ‘gulp-cli’  
at Function.Module.\_resolveFilename (internal/modules/cjs/loader.js:603:15)  
at Function.Module.\_load (internal/modules/cjs/loader.js:529:25)  
at Module.require (internal/modules/cjs/loader.js:659:17)  
at require (internal/modules/cjs/helpers.js:22:18)  
at Object. (/usr/local/lib/node\_modules/gulp/bin/gulp.js:3:1)  
at Module.\_compile (internal/modules/cjs/loader.js:723:30)  
at Object.Module.\_extensions…js (internal/modules/cjs/loader.js:734:10)  
at Module.load (internal/modules/cjs/loader.js:620:32)  
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)  
at Function.Module.\_load (internal/modules/cjs/loader.js:552:3)

Any suggestions?

---

## Post 2 by @MWDelaney — 2018-12-18T14:40:57Z

We’ll need to know what operating system you’re running, and also what you’ve done to troubleshoot this issue so that we’re not re-treading ground you’ve already walked.

---

## Post 3 by @sbcMeg — 2018-12-18T14:53:30Z

Hi MWDelaney,

Thanks so much for getting back to me.

I’m running Mac OS High Sierra, and I’ve managed to fix the issue above. But I am now getting this error when running gulp watch within the template directory:  
gulp watch[8188]: …/src/node\_contextify.cc:633:static void node::contextify::ContextifyScript::New(const FunctionCallbackInfo\<v8::Value\> &): Assertion `args[1]-\>IsString()’ failed.

1: 0x10003b125 node::Abort() [/usr/local/bin/node]

2: 0x10003a183 node::AddEnvironmentCleanupHook(v8::Isolate\*, void (_)(void_), void\*) [/usr/local/bin/node]

3: 0x100064bc1 node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo\<v8::Value\> const&) [/usr/local/bin/node]

4: 0x10023122f v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo\*) [/usr/local/bin/node]

5: 0x1002303cb v8::internal::MaybeHandle\<v8::internal::Object\> v8::internal::(anonymous namespace)::HandleApiCallHelper\<true\>(v8::internal::Isolate\*, v8::internal::Handle\<v8::internal::HeapObject\>, v8::internal::Handle\<v8::internal::HeapObject\>, v8::internal::Handle\<v8::internal::FunctionTemplateInfo\>, v8::internal::Handle\<v8::internal::Object\>, v8::internal::BuiltinArguments) [/usr/local/bin/node]

6: 0x10022fde7 v8::internal::Builtin\_Impl\_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate\*) [/usr/local/bin/node]

7: 0x22e57615be3d

Abort trap: 6

I have done a bit of Googling, which suggested downgrading node.js, but that didn’t seem to help either so I stuck with the suggested version on the node website.

Thanks,  
Meg

---

## Post 4 by @MWDelaney — 2018-12-18T14:58:06Z

Sage 8 requires Node 4.5. We recommend using `nvm` to switch between Node versions as needed. Make sure you’ve followed the [getting started documentation](https://roots.io/getting-started/docs/macos-development-environment-sage/) for Sage to install `nvm`. Those docs are written for Sage 9, so when they say to install Node `lts/carbon`, use `4.5` instead.
