ChrisWren / grunt-nodemon

Grunt task to run nodemon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm install grunt-nodemon --save-dev doesn't install dependant packages?

klclee opened this issue · comments

Hi I am new to grunt. I ran npm install grunt-nodemon --save-dev but it didn't install the depandant packages inside. So when I do grunt nodemon it tells me nodemon cannot be found. I do have nodemon install in global space.

I got round it by cd ing to the node module and ran npm install seems ok now

In an older version I didn't properly list nodemon as a dependency. However the latest version should list it correctly. What version of grunt-nodemon do you have installed?

grunt-nodemon@0.0.5

When I ran npm install grunt-nodemon --save-dev I had the following output in my command line:

grunt-nodemon@0.0.5 node_modules/grunt-nodemon
└── nodemon@0.7.8

This shows that nodemon was installed as a dependency. What is your output like?

strange. So if i started a new project and used the command above i get what you have. But for my current project (which i used the same command) where I had to run npm install in the module dir I now have this:

─┬ grunt-nodemon@0.0.5
│ ├─┬ grunt@0.4.1
│ │ ├── async@0.1.22
│ │ ├── coffee-script@1.3.3
│ │ ├── colors@0.6.0-1
│ │ ├── dateformat@1.0.2-1.2.3
│ │ ├── eventemitter2@0.4.12
│ │ ├─┬ findup-sync@0.1.2
│ │ │ └── lodash@1.0.1
│ │ ├─┬ glob@3.1.21
│ │ │ ├── graceful-fs@1.2.2
│ │ │ └── inherits@1.0.0
│ │ ├── hooker@0.2.3
│ │ ├── iconv-lite@0.2.10
│ │ ├─┬ js-yaml@2.0.5
│ │ │ ├─┬ argparse@0.1.15
│ │ │ │ ├── underscore@1.4.4
│ │ │ │ └── underscore.string@2.3.1
│ │ │ └── esprima@1.0.3
│ │ ├── lodash@0.9.2
│ │ ├─┬ minimatch@0.2.12
│ │ │ ├── lru-cache@2.3.0
│ │ │ └── sigmund@1.0.0
│ │ ├─┬ nopt@1.0.10
│ │ │ └── abbrev@1.0.4
│ │ ├─┬ rimraf@2.0.3
│ │ │ └── graceful-fs@1.1.14
│ │ ├── underscore.string@2.2.0rc
│ │ └── which@1.0.5
│ ├─┬ grunt-simple-mocha@0.4.0
│ │ └─┬ mocha@1.11.0
│ │ ├── commander@0.6.1
│ │ ├── debug@0.7.2
│ │ ├── diff@1.0.2
│ │ ├─┬ glob@3.2.1
│ │ │ ├── graceful-fs@1.2.2
│ │ │ ├── inherits@1.0.0
│ │ │ └─┬ minimatch@0.2.12
│ │ │ ├── lru-cache@2.3.0
│ │ │ └── sigmund@1.0.0
│ │ ├── growl@1.7.0
│ │ ├─┬ jade@0.26.3
│ │ │ └── mkdirp@0.3.0
│ │ ├── mkdirp@0.3.5
│ │ └── ms@0.3.0
│ ├── nodemon@0.7.8
│ └── should@1.2.2

ok i removed it and ran npm install again on my current project seems ok. same output as yours

That is strange, it looks like you got the devDependencies as well. I do see nodemon in that list so it should be working.

Let me know if you have any more issues.