I created a module (webapp-module-storage
) which has the following definitions:
package.json
{
\"dependencies\": {
..
Try running npm link gulp
in your application directory (to create a local link to the globally installed Gulp module).
Try installing your dependencies first:
npm install
If still does not work, install gulp globally:
npm install -g gulp
if you find problems installing it. type sudo before npm.
In case you need more info about why you need gulp globally and locally read this answer
npm link gulp --no-bin-links
Run this
where npm link gulp
creates a local link to globally installed gulp module and --no-bin-links
argument will prevent npm from creating symlinks for any binaries the package might contain.
You can't translate symlinks to a synchronized folder on Windows share, so you will need '--no-bin-links' to go around it.
Use it for any filesystem that doesn’t support symbolic links.
Symlinks, or symbolic links, are “virtual” files or folders which reference a physical file or folder located elsewhere, and are an important feature built in to many operating systems, including Linux and Windows.
npm link gulp --force
Using this command worked well for me.
I have tried all the solutions mentioned. At the end I was able to solve the problem by realising that the gulpfile.js file was missing on the location i was using the gulp. After placing the gulpfile.js in the folder from where I was executing gulp, it worked for me.