Eu já tinha o nodejs do curso de angular, mas removi ele e instalei novamente, mas não estou conseguindo instalar seguindo as instruções do curso sobre Grunt.
Primeiro installei o node.js, normal. Depois fiz isso:
C:>cd nodejs
C:\nodejs>dir O volume na unidade C não tem nome. O Número de Série do Volume é C61D-DFAC
Pasta de C:\nodejs
16/02/2016 13:53
. 16/02/2016 13:53 .. 16/02/2016 13:53 grunt 0 arquivo(s) 0 bytes 3 pasta(s) 529.288.122.368 bytes disponíveisC:\nodejs>cd grunt
C:\nodejs\grunt>npm init This utility will walk you through creating a package.json file. It only covers the most common items, and tries to guess sensible defaults.
See npm help json
for definitive documentation on these fields
and exactly what they do.
Use npm install <pkg> --save
afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit. name: (grunt) version: (1.0.0) description: entry point: (index.js) test command: git repository: keywords: author: license: (ISC) About to write to C:\nodejs\grunt\package.json:
{ "name": "grunt", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC" }
Is this ok? (yes) y
C:\nodejs\grunt>npm install grunt --save-dev npm WARN package.json grunt@1.0.0 No description npm WARN package.json grunt@1.0.0 No repository field. npm WARN package.json grunt@1.0.0 No README data npm WARN install Refusing to install grunt as a dependency of itself
C:\nodejs\grunt>npm install grunt-cli -g npm WARN deprecated lodash@2.4.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0. C:\Users\Rodrigo\AppData\Roaming\npm\grunt -> C:\Users\Rodrigo\AppData\Roaming\n pm\node_modules\grunt-cli\bin\grunt grunt-cli@0.1.13 C:\Users\Rodrigo\AppData\Roaming\npm\node_modules\grunt-cli ├── resolve@0.3.1 ├── nopt@1.0.10 (abbrev@1.0.7) └── findup-sync@0.1.3 (lodash@2.4.2, glob@3.2.11)
C:\nodejs\grunt>npm install npm WARN package.json grunt@1.0.0 No description npm WARN package.json grunt@1.0.0 No repository field. npm WARN package.json grunt@1.0.0 No README data
C:\nodejs\grunt>