linnovate / mean-cli

meanio cli npm package
MIT License
57 stars 65 forks source link

Gulp & npm not found after following installation steps #148

Open ferrybig opened 6 years ago

ferrybig commented 6 years ago

Trying to follow the installation steps, this happened:

  1. npm install -g mean-cli

    This works

  2. mean init mean-application

    This one properly installs a mean application

  3. cd <NameOfYourApp> && npm install

    Seems to install all packages needed

  4. mean package <NameOfYourPackage>

    Throws:

    module.js:472
    throw err;
    ^

Error: Cannot find module 'npm'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\fernando\AppData\Roaming\npm\node_modules\mean-cli\lib\cli.js:5:7)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
  1. gulp

    Throws the following error:

[10:34:24] Local gulp not found in ~\Documents\Webdesign\mean-application
[10:34:24] Try running: npm install gulp
yasirunilan commented 6 years ago

Also the installed project doesn't have a gulp file to run the Gulp command. I also tried in my local machine this problem is there for me also.

liorkesos commented 6 years ago

Gulp and npm need to be installed globally . Maybe the prerequisites section in the readme is unclear. You should probably run npm install -g gulp Lior

On Oct 15, 2017 7:22 AM, "Yasiru NIlan" notifications@github.com wrote:

Also the installed project doesn't have a gulp file to run the Gulp command. I also tried in my local machine this problem is there for me also.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/linnovate/mean-cli/issues/148#issuecomment-336685470, or mute the thread https://github.com/notifications/unsubscribe-auth/AAO9I-NGOIhaVkedxX0Jgi4abMp7U7yeks5ssYiYgaJpZM4PMnOu .

yasirunilan commented 6 years ago

@liorkesos in my case I have already installed gulp globally. Problem is there is no any gulp file inside the project to run the gulp command.