Hi @revathskumar,

I'm not sure this is the cause of the problem. When you use `npm link`
this effectively installs the generator as global and that is how I tested
the procedure. I've just unlinked, installed globally and run it,
uninstalled, installed locally and run it and haven't got an error.

If you add to a `Gruntfile.js` something like:

```javascript
        copy: {
            // Checking /usr/lib/node_modules -> npm appears to be global
so lets use that...
            testGlobalInstall: {
                files: [{
                    expand: true,
                    cwd:
require('path').dirname(require.resolve('npm/lib/install.js')),
                    dest: '.tmp/scripts/',
                    src: [ 'install.js' ]
                }]
            },
            // checking ./node_modules -> grunt is local so lets use that...
            testLocalInstall: {
                files: [{
                    expand: true,
                    cwd:
require('path').dirname(require.resolve('grunt/lib/grunt/config.js')),
                    dest: '.tmp/scripts/',
                    src: [ 'config.js' ]
                }]
            }
        }
```

and then run: `grunt copy:testGlobalInstall copy:testLocalInstall` does that
work?

What's the error you're seeing? Is this a node 0.8 problem? I'm on node
0.10.5.

Many thanks,

Andy