It may make sense to give your user account permission to write to that directory instead of doing sudo npm install g this is a very old npm article but does explain some more thoughts around that.
Error cannot find module vinyl map.
Cannot find required map name press esc in 5 seconds to skip startup nsh any other key to conti.
Cody codetop desktop todomvc aurelia master gulp module js 338 throw err.
Check npm s proxy configuration.
Sometimes a module s dependencies change causing a different version or even a different module to be loaded as the node pathis searched.
Apply a source map to a vinyl file merging it with preexisting source maps.
Additionally node js will search in the following locations.
I tried using the types webpack types html webpack pluginpackage and had problems.
I tried using the latest stable version of tsc.
Patch dependency issues affirmix vinyl map 3 merged andrewodri pushed a commit to affirmix vinyl map that referenced this issue dec 20 2016.
Anonymous c.
Tried a clean install without sense plugin same error.
Tried upgrading to node 0 12 9 which is mentioned in the package json same error.
This can be caused by corporate proxies that give html responses to package json requests.
Tried npm cache clear first same error.
If you know how to fix the issue make a pull request instead.
Cannot find module concat map at function module resolvefilename module js 336 15 at function module load module js 278 25 at module require module js 365 17 at require module js 384 17 at object.
Run npm cache clean and or try again later.
Nvm install v4 2 4 official stable version same error.
Efi shell version 2 31 4 633 current running mode 1 1 2 map.
There s multiple errors seems to be all failing when optimising all the less files.
U sers c ody d esktop t.
If you re getting permission errors when you run npm install g make sure your user account has the ability to write to the directory in question i think it s usr local bin if you re on a mac.