Hi,
I am trying to use node.js script to start and stop VM.
var projectId = 'iknowitmoms';
var gcloud = require('gcloud')({ projectId: projectId });
var gce = gcloud.compute();
var zone = gce.zone('us-central1-f');
I run from windows 8.1
It gives error - can not find module 'gcloud'.
Before this, I had done
d:\> node --version
It returned "v8.9.4
I had installed d:\> npm install -g gcloud
After installation, I tried the node.js. the it gave error I mentioned - can not find module 'gcloud'.
I had noticed that npm documentation says the name changed to google-cloud. I tried this also.
It does not work.
Any suggestions? Thanks.