Encountering errors in compiling plone resources

I'm unable to compile my css and javascript resources, when running

./bin/plone-compile-resources --bundle=plone

I'm getting error

WARNING zope.i18n Error while compiling /home/envy/work/plone5devel/src/plone.app.multilingual/src/plone/app/multilingual/locales/nl/LC_MESSAGES/plone.app.multilingual.po

and then a series of error messages

Using site id: Plone
Setup npm env
Running command: npm install

> v8-debug@0.7.7 preinstall /home/envy/work/plone5devel/node_modules/.staging/v8-debug-1ad01c07
> node -e 'process.exit(0)'

npm WARN prefer global node-inspector@0.12.10 should be installed with -g

> v8-debug@0.7.7 install /home/envy/work/plone5devel/node_modules/v8-debug
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://node-inspector.s3.amazonaws.com/debug/v0.7.7/node-v51-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for v8-debug@0.7.7 and node@7.6.0 (node-v51 ABI) (falling back to source compile with node-gyp) 
make: Entering directory '/home/envy/work/plone5devel/node_modules/v8-debug/build'
CXX(target) Release/obj.target/debug/src/debug.o
../src/debug.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE nodex::Debug::Call(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/debug.cc:38:27: error: no matching function for call to ‘v8::Debug::Call(v8::Local<v8::Function>&)’
     v8::Debug::Call(fn);
                       ^
 In file included from ../src/debug.cc:1:0:
/home/envy/.node-gyp/7.6.0/include/node/v8-debug.h:198:28: note: candidate: static v8::MaybeLocal<v8::Value> v8::Debug::Call(v8::Local<v8::Context>, v8::Local<v8::Function>, v8::Local<v8::Value>)
 static MaybeLocal<Value> Call(Local<Context> context,
                        ^
/home/envy/.node-gyp/7.6.0/include/node/v8-debug.h:198:28: note:   candidate expects 3 arguments, 1 provided
../src/debug.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE            nodex::Debug::SendCommand(Nan::NAN_METHOD_ARGS_TYPE)’:
 ../src/debug.cc:46:61: error: no matching function for call to ‘v8::Debug::GetDebugContext()’
     Isolate* debug_isolate = v8::Debug::GetDebugContext()->GetIsolate();
                                                         ^
In file included from ../src/debug.cc:1:0:
/home/envy/.node-gyp/7.6.0/include/node/v8-debug.h:248:25: note: candidate: static v8::Local<v8::Context> v8::Debug::GetDebugContext(v8::Isolate*)
static Local<Context> GetDebugContext(Isolate* isolate);
                     ^
/home/envy/.node-gyp/7.6.0/include/node/v8-debug.h:248:25: note:   candidate expects 1 argument, 0 provided
../src/debug.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE            nodex::Debug::RunScript(Nan::NAN_METHOD_ARGS_TYPE)’:
   ../src/debug.cc:61:67: error: no matching function for call to ‘v8::Debug::GetDebugContext()’
     Local<Context> debug_context = v8::Debug::GetDebugContext();
                                                               ^
In file included from ../src/debug.cc:1:0:
/home/envy/.node-gyp/7.6.0/include/node/v8-debug.h:248:25: note: candidate: static v8::Local<v8::Context> v8::Debug::GetDebugContext(v8::Isolate*)
   static Local<Context> GetDebugContext(Isolate* isolate);
                     ^
/home/envy/.node-gyp/7.6.0/include/node/v8-debug.h:248:25: note:   candidate expects 1 argument, 0 provided
../src/debug.cc:66:54: error: no matching function for call to ‘v8::Debug::GetDebugContext()’
       debug_context = v8::Debug::GetDebugContext();
                                                  ^
In file included from ../src/debug.cc:1:0:
/home/envy/.node-gyp/7.6.0/include/node/v8-debug.h:248:25: note: candidate: static v8::Local<v8::Context> v8::Debug::GetDebugContext(v8::Isolate*)
   static Local<Context> GetDebugContext(Isolate* isolate);
                     ^
/home/envy/.node-gyp/7.6.0/include/node/v8-debug.h:248:25: note:   candidate expects 1 argument, 0 provided
debug.target.mk:97: recipe for target 'Release/obj.target/debug/src/debug.o' failed
make: *** [Release/obj.target/debug/src/debug.o] Error 1
make: Leaving directory '/home/envy/work/plone5devel/node_modules/v8-debug/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/envy/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:192:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.9.0-040900-generic
gyp ERR! command "/usr/local/bin/node" "/home/envy/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/envy/work/plone5devel/node_modules/v8-debug/build/debug/v0.7.7/node-v51-linux-x64/debug.node" "--module_name=debug" "--module_path=/home/envy/work/plone5devel/node_modules/v8-debug/build/debug/v0.7.7/node-v51-linux-x64"
gyp ERR! cwd /home/envy/work/plone5devel/node_modules/v8-debug
gyp ERR! node -v v7.6.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /home/envy/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/envy/work/plone5devel/node_modules/v8-debug/build/debug/v0.7.7/node-v51-linux-x64/debug.node --module_name=debug --module_path=/home/envy/work/plone5devel/node_modules/v8-debug/build/debug/v0.7.7/node-v51-linux-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/envy/work/plone5devel/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:192:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:890:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Linux 4.9.0-040900-generic
node-pre-gyp ERR! command "/usr/local/bin/node" "/home/envy/work/plone5devel/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/envy/work/plone5devel/node_modules/v8-debug
node-pre-gyp ERR! node -v v7.6.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.33
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/bin/node /home/envy/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/envy/work/plone5devel/node_modules/v8-debug/build/debug/v0.7.7/node-v51-linux-x64/debug.node --module_name=debug --module_path=/home/envy/work/plone5devel/node_modules/v8-debug/build/debug/v0.7.7/node-v51-linux-x64' (1)
Plone@1.0.0 /home/envy/work/plone5devel
`-- (empty)

npm ERR! Linux 4.9.0-040900-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v7.6.0
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE

npm ERR! v8-debug@0.7.7 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the v8-debug@0.7.7 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the v8-debug package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs v8-debug
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls v8-debug
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/envy/work/plone5devel/npm-debug.log
Traceback (most recent call last):
  File "./bin/plone-compile-resources", line 297, in <module>
sys.exit(Products.CMFPlone._scripts.compile_resources.main())
  File "/home/envy/work/plone5devel/src/Products.CMFPlone/Products/CMFPlone/_scripts/compile_resources.py", line 85, in main
subprocess.check_call(cmd)
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['npm', 'install']' returned non-zero exit status 1

I'm no expert and this feature isn't documented well but I believe this script is designed to be used in conjunction with a test plone site. In your local instance (bin/instance fg) create a site (e.g. id = plonetocompile), then shut it down and run the script again with

./bin/plone-compile-resources --bundle=plone --site=plonetocomiple

I've no idea why its needed or if its possible to run that command without that argument

actually if I am not giving any site id it took one that I had created by default

Using site id: Plone

I also created another site plonetocompile and then executed

./bin/plone-compile-resources --site-id=plonetocompile --bundle=plone

But no luck I'm still getting the same error

If you read carefully the error message you find:

So I would say your systems node and npm versions reached end-of-life and need to be updated.

@jensens I updated npm to 4.4.1 and node to 7.7.3 these are both the latest versions but the problem still persists but the error messages have changed slightly.

Running command: /home/envy/work/plone5devel/bin/instance run /home/envy/work/plone5devel/src/Products.CMFPlone/Products/CMFPlone/_scripts/_generate_gruntfile.py
2017-03-15 16:58:20 WARNING zope.i18n Error while compiling /home/envy/work/plone5devel/src/plone.app.multilingual/src/plone/app/multilingual/locales/nl/LC_MESSAGES/plone.app.multilingual.po
Using site id: plonetocompile
Setup npm env
Running command: npm install

> v8-debug@0.7.7 preinstall /home/envy/work/plone5devel/node_modules/.staging/v8-debug-1ad01c07
> node -e 'process.exit(0)'

npm WARN prefer global node-inspector@0.12.10 should be installed with -g

> v8-debug@0.7.7 install /home/envy/work/plone5devel/node_modules/v8-debug
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://node-inspector.s3.amazonaws.com/debug/v0.7.7/node-v51-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for v8-debug@0.7.7 and node@7.7.3 (node-v51 ABI) (falling back to source compile with node-gyp) 
make: Entering directory '/home/envy/work/plone5devel/node_modules/v8-debug/build'
  CXX(target) Release/obj.target/debug/src/debug.o
../src/debug.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE nodex::Debug::Call(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/debug.cc:38:27: error: no matching function for call to ‘v8::Debug::Call(v8::Local<v8::Function>&)’
         v8::Debug::Call(fn);
                           ^
In file included from ../src/debug.cc:1:0:
/home/envy/.node-gyp/7.7.3/include/node/v8-debug.h:198:28: note: candidate: static v8::MaybeLocal<v8::Value> v8::Debug::Call(v8::Local<v8::Context>, v8::Local<v8::Function>, v8::Local<v8::Value>)
   static MaybeLocal<Value> Call(Local<Context> context,
                            ^
/home/envy/.node-gyp/7.7.3/include/node/v8-debug.h:198:28: note:   candidate expects 3 arguments, 1 provided
../src/debug.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE nodex::Debug::SendCommand(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/debug.cc:46:61: error: no matching function for call to ‘v8::Debug::GetDebugContext()’
         Isolate* debug_isolate = v8::Debug::GetDebugContext()->GetIsolate();
                                                             ^
In file included from ../src/debug.cc:1:0:
/home/envy/.node-gyp/7.7.3/include/node/v8-debug.h:248:25: note: candidate: static v8::Local<v8::Context> v8::Debug::GetDebugContext(v8::Isolate*)
   static Local<Context> GetDebugContext(Isolate* isolate);
                         ^
/home/envy/.node-gyp/7.7.3/include/node/v8-debug.h:248:25: note:   candidate expects 1 argument, 0 provided
../src/debug.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE nodex::Debug::RunScript(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/debug.cc:61:67: error: no matching function for call to ‘v8::Debug::GetDebugContext()’
         Local<Context> debug_context = v8::Debug::GetDebugContext();
                                                                   ^
In file included from ../src/debug.cc:1:0:
/home/envy/.node-gyp/7.7.3/include/node/v8-debug.h:248:25: note: candidate: static v8::Local<v8::Context> v8::Debug::GetDebugContext(v8::Isolate*)
   static Local<Context> GetDebugContext(Isolate* isolate);
                         ^
/home/envy/.node-gyp/7.7.3/include/node/v8-debug.h:248:25: note:   candidate expects 1 argument, 0 provided
../src/debug.cc:66:54: error: no matching function for call to ‘v8::Debug::GetDebugContext()’
           debug_context = v8::Debug::GetDebugContext();
                                                      ^
In file included from ../src/debug.cc:1:0:
/home/envy/.node-gyp/7.7.3/include/node/v8-debug.h:248:25: note: candidate: static v8::Local<v8::Context> v8::Debug::GetDebugContext(v8::Isolate*)
   static Local<Context> GetDebugContext(Isolate* isolate);
                         ^
/home/envy/.node-gyp/7.7.3/include/node/v8-debug.h:248:25: note:   candidate expects 1 argument, 0 provided
debug.target.mk:97: recipe for target 'Release/obj.target/debug/src/debug.o' failed
make: *** [Release/obj.target/debug/src/debug.o] Error 1
make: Leaving directory '/home/envy/work/plone5devel/node_modules/v8-debug/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/envy/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:194:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.9.0-040900-generic
gyp ERR! command "/usr/local/bin/node" "/home/envy/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/envy/work/plone5devel/node_modules/v8-debug/build/debug/v0.7.7/node-v51-linux-x64/debug.node" "--module_name=debug" "--module_path=/home/envy/work/plone5devel/node_modules/v8-debug/build/debug/v0.7.7/node-v51-linux-x64"
gyp ERR! cwd /home/envy/work/plone5devel/node_modules/v8-debug
gyp ERR! node -v v7.7.3
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /home/envy/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/envy/work/plone5devel/node_modules/v8-debug/build/debug/v0.7.7/node-v51-linux-x64/debug.node --module_name=debug --module_path=/home/envy/work/plone5devel/node_modules/v8-debug/build/debug/v0.7.7/node-v51-linux-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/envy/work/plone5devel/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:194:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:899:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Linux 4.9.0-040900-generic
node-pre-gyp ERR! command "/usr/local/bin/node" "/home/envy/work/plone5devel/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/envy/work/plone5devel/node_modules/v8-debug
node-pre-gyp ERR! node -v v7.7.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.33
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/bin/node /home/envy/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/envy/work/plone5devel/node_modules/v8-debug/build/debug/v0.7.7/node-v51-linux-x64/debug.node --module_name=debug --module_path=/home/envy/work/plone5devel/node_modules/v8-debug/build/debug/v0.7.7/node-v51-linux-x64' (1)
Plone@1.0.0 /home/envy/work/plone5devel
`-- (empty)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! v8-debug@0.7.7 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the v8-debug@0.7.7 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the v8-debug package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs v8-debug
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls v8-debug
npm ERR! There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/envy/.npm/_logs/2017-03-15T11_28_56_460Z-debug.log
Traceback (most recent call last):
  File "./bin/plone-compile-resources", line 297, in <module>
    sys.exit(Products.CMFPlone._scripts.compile_resources.main())
  File "/home/envy/work/plone5devel/src/Products.CMFPlone/Products/CMFPlone/_scripts/compile_resources.py", line 85, in main
    subprocess.check_call(cmd)
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['npm', 'install']' returned non-zero exit status 1

I did find out that most of these errors are because it is not able to install node-inspector, cause I tried installing it separately and it is giving me the same errors, as above but can someone tell me why I'm getting this error in the first place

WARNING zope.i18n Error while compiling /home/envy/work/plone5devel/src/plone.app.multilingual/src/plone/app/multilingual/locales/nl/LC_MESSAGES/plone.app.multilingual.po

and will it be resolved after installing node inspector correctly. I'm still searching for solution online on how to install it.

Those are warnings about translation files; usually you can ignore them (unless you're working on translations!).

But then because of these errors it is not compiling the css and javascript files I'm unable to work any further on solving the bugs. I also cloned the entire repo again and ran buildout again now while running

./bin/plone-compile-resources --site-id=plonetocompile --bundle=plone

I'm not getting the previous errors only the one corresponding to node-inspector:

./bin/plone-compile-resources --bundle=plone --site=plonetocompile
Running command: /home/envy/plone5devel/bin/instance run /home/envy/plone5devel/src/Products.CMFPlone/Products/CMFPlone/_scripts/_generate_gruntfile.py
Using site id: plonetocompile
Setup npm env
Running command: npm install

> v8-debug@0.7.7 preinstall /home/envy/plone5devel/node_modules/.staging/v8-debug-2d9b716e
> node -e 'process.exit(0)'

npm WARN prefer global node-inspector@0.12.10 should be installed with -g

> v8-debug@0.7.7 install /home/envy/plone5devel/node_modules/v8-debug
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://node-inspector.s3.amazonaws.com/debug/v0.7.7/node-v51-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for v8-debug@0.7.7 and node@7.7.3 (node-v51 ABI) (falling back to source compile with node-gyp) 
make: Entering directory '/home/envy/plone5devel/node_modules/v8-debug/build'
  CXX(target) Release/obj.target/debug/src/debug.o
../src/debug.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE nodex::Debug::Call(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/debug.cc:38:27: error: no matching function for call to ‘v8::Debug::Call(v8::Local<v8::Function>&)’
         v8::Debug::Call(fn);
                           ^
In file included from ../src/debug.cc:1:0:
/home/envy/.node-gyp/7.7.3/include/node/v8-debug.h:198:28: note: candidate: static v8::MaybeLocal<v8::Value> v8::Debug::Call(v8::Local<v8::Context>, v8::Local<v8::Function>, v8::Local<v8::Value>)
   static MaybeLocal<Value> Call(Local<Context> context,
                            ^
/home/envy/.node-gyp/7.7.3/include/node/v8-debug.h:198:28: note:   candidate expects 3 arguments, 1 provided
../src/debug.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE nodex::Debug::SendCommand(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/debug.cc:46:61: error: no matching function for call to ‘v8::Debug::GetDebugContext()’
         Isolate* debug_isolate = v8::Debug::GetDebugContext()->GetIsolate();
                                                             ^
In file included from ../src/debug.cc:1:0:
/home/envy/.node-gyp/7.7.3/include/node/v8-debug.h:248:25: note: candidate: static v8::Local<v8::Context> v8::Debug::GetDebugContext(v8::Isolate*)
   static Local<Context> GetDebugContext(Isolate* isolate);
                         ^
/home/envy/.node-gyp/7.7.3/include/node/v8-debug.h:248:25: note:   candidate expects 1 argument, 0 provided
../src/debug.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE nodex::Debug::RunScript(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/debug.cc:61:67: error: no matching function for call to ‘v8::Debug::GetDebugContext()’
         Local<Context> debug_context = v8::Debug::GetDebugContext();
                                                                   ^
In file included from ../src/debug.cc:1:0:
/home/envy/.node-gyp/7.7.3/include/node/v8-debug.h:248:25: note: candidate: static v8::Local<v8::Context> v8::Debug::GetDebugContext(v8::Isolate*)
   static Local<Context> GetDebugContext(Isolate* isolate);
                         ^
/home/envy/.node-gyp/7.7.3/include/node/v8-debug.h:248:25: note:   candidate expects 1 argument, 0 provided
../src/debug.cc:66:54: error: no matching function for call to ‘v8::Debug::GetDebugContext()’
           debug_context = v8::Debug::GetDebugContext();
                                                      ^
In file included from ../src/debug.cc:1:0:
/home/envy/.node-gyp/7.7.3/include/node/v8-debug.h:248:25: note: candidate: static v8::Local<v8::Context> v8::Debug::GetDebugContext(v8::Isolate*)
   static Local<Context> GetDebugContext(Isolate* isolate);
                         ^
/home/envy/.node-gyp/7.7.3/include/node/v8-debug.h:248:25: note:   candidate expects 1 argument, 0 provided
debug.target.mk:97: recipe for target 'Release/obj.target/debug/src/debug.o' failed
make: *** [Release/obj.target/debug/src/debug.o] Error 1
make: Leaving directory '/home/envy/plone5devel/node_modules/v8-debug/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/envy/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:194:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.9.0-040900-generic
gyp ERR! command "/usr/local/bin/node" "/home/envy/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/envy/plone5devel/node_modules/v8-debug/build/debug/v0.7.7/node-v51-linux-x64/debug.node" "--module_name=debug" "--module_path=/home/envy/plone5devel/node_modules/v8-debug/build/debug/v0.7.7/node-v51-linux-x64"
gyp ERR! cwd /home/envy/plone5devel/node_modules/v8-debug
gyp ERR! node -v v7.7.3
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /home/envy/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/envy/plone5devel/node_modules/v8-debug/build/debug/v0.7.7/node-v51-linux-x64/debug.node --module_name=debug --module_path=/home/envy/plone5devel/node_modules/v8-debug/build/debug/v0.7.7/node-v51-linux-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/envy/plone5devel/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:194:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:899:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Linux 4.9.0-040900-generic
node-pre-gyp ERR! command "/usr/local/bin/node" "/home/envy/plone5devel/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/envy/plone5devel/node_modules/v8-debug
node-pre-gyp ERR! node -v v7.7.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.33
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/bin/node /home/envy/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/envy/plone5devel/node_modules/v8-debug/build/debug/v0.7.7/node-v51-linux-x64/debug.node --module_name=debug --module_path=/home/envy/plone5devel/node_modules/v8-debug/build/debug/v0.7.7/node-v51-linux-x64' (1)
Plone@1.0.0 /home/envy/plone5devel
`-- (empty)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! v8-debug@0.7.7 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the v8-debug@0.7.7 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the v8-debug package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs v8-debug
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls v8-debug
npm ERR! There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/envy/.npm/_logs/2017-03-16T01_47_34_404Z-debug.log
Traceback (most recent call last):
  File "./bin/plone-compile-resources", line 297, in <module>
    sys.exit(Products.CMFPlone._scripts.compile_resources.main())
  File "/home/envy/plone5devel/src/Products.CMFPlone/Products/CMFPlone/_scripts/compile_resources.py", line 85, in main
    subprocess.check_call(cmd)
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['npm', 'install']' returned non-zero exit status 1

using the script is just one way to compile resources. You can also do it via the control panel. You can then download the compiled bundle and save it in your product.

https://docs.plone.org/adapt-and-extend/theming/resourceregistry.html#compiling-bundles

I can;t see where you download it other than going into inspect/network in the browser and that method is not really covered in the documentation well but I've seen others refer to it.

Thanks @djay I'll give that a try

@vangheem, @sneridagh, could either of you offer advice here?

@envy7 I may have missed it if you've already stated it, but since you're trying your hand at theming, have you run through the theming training at https://training.plone.org/5/theming/index.html ?

@MrTango is also well versed in this since he created the training class for Bucharest :slight_smile:

Ok, I will run through the theming training, thanks for informing.