I'm trying to test Gulp and I find this problem.
sudo npm install -g gulp.mkdir my-gulpcd my-gulpsudo npm install --save-dev gulpmy-gulp continues empty.gulp@3.8.6 ../../node_modules/gulp
And I thinkig the problem is here "../../", I think it must be "gulp@3.8.6 node_modules/gulp"What do you think? Maybe is something about $PATH?
First, you should never run npm via sudo for local packages. (In fact, you shouldn't run it as root ever, but that's a different, more complex issue to solve.)
Second, you need to initialize NPM before you can install packages. It sounds like you didn't do this.
There's two ways:
If you have an existing package.json, which contains the required information about a project, you can copy it into your folder, then edit in a text editor of your choice to get started. If the package.json includes existing dependencies, you can either remove them, or run npm i in the folder to install them.
If you are starting fresh, run npm init to set up a new package.
Once you have a valid package.json, you can install packages into your application.
As to why you are seeing ../../gulp, I'm guessing you have a package.json further up the file tree somewhere.