angular-fullstack test

1:运行yo

angular-fullstack test

提示我可以升级到1.4.7版本,下面进行升级

angular-fullstack test

提示需要npm>=2.8.0下面进行升级npm

y@y:angular-fullstack-test$ npm install npm -g
/home/y/.npm-packages/bin/npm -> /home/y/.npm-packages/lib/node_modules/npm/bin/npm-cli.js
npm@2.13. /home/y/.npm-packages/lib/node_modules/npm y@y:angular-fullstack-test$ npm -v
2.13.
y@y:angular-fullstack-test$

升级yo

y@y:angular-fullstack-test$ npm install -g yo

> spawn-sync@1.0. postinstall /home/y/.npm-packages/lib/node_modules/yo/node_modules/cross-spawn/node_modules/spawn-sync
> node postinstall /home/y/.npm-packages/bin/yo -> /home/y/.npm-packages/lib/node_modules/yo/lib/cli.js > yo@1.4. postinstall /home/y/.npm-packages/lib/node_modules/yo
> yodoctor Yeoman Doctor
Running sanity checks on your system ✔ Global configuration file is valid
✔ NODE_PATH matches the npm root
✔ Node.js version
✔ No .bowerrc file in home directory
✔ No .yo-rc.json file in home directory
✔ npm version Everything looks all right!
yo@1.4. /home/y/.npm-packages/lib/node_modules/yo
├── titleize@1.0.
├── figures@1.3.
├── array-uniq@1.0.
├── user-home@1.1.
├── opn@1.0.
├── humanize-string@1.0. (decamelize@1.0.)
├── sort-on@1.2. (arrify@1.0., dot-prop@2.2.)
├── yeoman-character@1.0. (supports-color@1.3.)
├── repeating@1.1. (is-finite@1.0.)
├── findup@0.1. (commander@2.1., colors@0.6.)
├── root-check@1.0. (sudo-block@1.2., downgrade-root@1.1.)
├── meow@3.3. (object-assign@3.0., indent-string@1.2., minimist@1.1., camelcase-keys@1.0.)
├── string-length@1.0. (strip-ansi@3.0.)
├── chalk@1.1. (escape-string-regexp@1.0., supports-color@2.0., ansi-styles@2.1., strip-ansi@3.0., has-ansi@2.0.)
├── yosay@1.0. (ansi-regex@1.1., strip-ansi@2.0., ansi-styles@2.1., pad-component@0.0., word-wrap@1.1., taketalk@1.0., minimist@1.1., string-width@1.0.)
├── configstore@1.2. (os-tmpdir@1.0., object-assign@3.0., graceful-fs@4.1., uuid@2.0., xdg-basedir@2.0., osenv@0.1., mkdirp@0.5., write-file-atomic@1.1.)
├── update-notifier@0.5. (is-npm@1.0., latest-version@1.0., semver-diff@2.0.)
├── npm-keyword@1.2. (registry-url@3.0.)
├── package-json@1.2. (registry-url@3.0.)
├── got@3.3. (lowercase-keys@1.0., is-stream@1.0., timed-out@2.0., is-redirect@1.0., prepend-http@1.0., object-assign@3.0., infinity-agent@2.0., nested-error-stacks@1.0., read-all-stream@3.0., duplexify@3.4.)
├── async@1.4.
├── cross-spawn@0.4. (lru-cache@2.6., spawn-sync@1.0.)
├── lodash@3.10.
├── fullname@1.1. (npmconf@2.1.)
├── inquirer@0.8. (ansi-regex@1.1., cli-width@1.0., through@2.3., readline2@0.1., rx@2.5.)
├── insight@0.6. (object-assign@2.1., async@0.9., lodash.debounce@3.1., tough-cookie@1.2., os-name@1.0., request@2.60.)
├── yeoman-doctor@1.4. (object-values@1.0., log-symbols@1.0., each-async@1.1., semver@4.3., bin-version-check@2.1., twig@0.8.)
└── yeoman-environment@1.2. (escape-string-regexp@1.0., log-symbols@1.0., diff@1.4., text-table@0.2., untildify@2.1., debug@2.2., mem-fs@1.1., grouped-queue@0.3., globby@2.1.)

2:使用yo创建angular-fullstack项目

y@y:angular-fullstack-test$ yo
? ==========================================================================
? ==========================================================================
? ==========================================================================
We're constantly looking for ways to make yo better!
May we anonymously report usage statistics to improve the tool over time?
More info: https://github.com/yeoman/insight & http://yeoman.io
========================================================================== Yes
? 'Allo yshy! What would you like to do? (Use arrow keys)
Run a generator
❯ Angular Fullstack
──────────────
Update your generators
Install a generator
Find some help
Get me out of here!
──────────────

angular-fullstack test

angular-fullstack test

选择n继续.安装过程需要一段时间.

3:运行项目

$grunt serve

angular-fullstack test

上一篇:h5页面,改变数字默认颜色


下一篇:【转】有向图强连通分量的Tarjan算法