Vue.js 提供一个官方命令行工具,可用于快速搭建大型单页应用。该工具提供开箱即用的构建工具配置,带来现代化的前端开发流程。
只需几分钟即可创建并启动一个带热重载、保存时静态检查以及可用于生产环境的构建配置的项目:
# 全局安装 vue-cli$ npm install --global vue-cli# 创建一个基于 webpack 模板的新项目$ vue init webpack my-project$ vue init webpack test //输入命令? Project name (test) test? Project name test? Project description (A Vue.js project) 测试项目? Project description 测试项目? Author lxx1024? Author lxx1024? Vue build standalone? Install vue-router? (Y/n) Y //安装路由? Install vue-router? Yes? Use ESLint to lint your code? (Y/n) n //Eslint验证,很严谨,所以选择n? Use ESLint to lint your code? No? Setup unit tests with Karma + Mocha? (Y/n) Y? Setup unit tests with Karma + Mocha? Yes? Setup e2e tests with Nightwatch? (Y/n) Y? Setup e2e tests with Nightwatch? Yes vue-cli ・ Generated "test". To get started: cd test npm install npm run dev Documentation can be found at https://vuejs-templates.github.io/webpack# 安装依赖,走你$ cd my-project$ npm install$ npm run dev //运行项目
> npm install> phantomjs-prebuilt@2.1.15 install C:/Users/81487/Desktop/test/node_modules/phantomjs-prebuilt> node install.jsPhantomJS not found on PATHDownloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-windows.zipSaving to C:/Users/81487/AppData/Local/Temp/phantomjs/phantomjs-2.1.1-windows.zipReceiving...Error making request.Error: connect ETIMEDOUT 54.231.81.168:443 at Object.exports._errnoException (util.js:1020:11) at exports._exceptionWithHostPort (util.js:1043:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)Please report this full log at https://github.com/Medium/phantomjstest@1.0.0 C:/Users/81487/Desktop/test+-- autoprefixer@7.1.5| +-- browserslist@2.5.1| | `-- electron-to-chromium@1.3.26| +-- caniuse-lite@1.0.30000746| +-- normalize-range@0.1.2| +-- num2fraction@1.2.2| +-- postcss@6.0.13| `-- postcss-value-parser@3.3.0+-- babel-core@6.26.0| +-- babel-code-frame@6.26.0| | +-- chalk@1.1.3| | | +-- ansi-styles@2.2.1| | | `-- supports-color@2.0.0| | +-- esutils@2.0.2| | `-- js-tokens@3.0.2| +-- babel-generator@6.26.0| | +-- detect-indent@4.0.0| | | `-- repeating@2.0.1| | | `-- is-finite@1.0.2| | | `-- number-is-nan@1.0.1| | +-- jsesc@1.3.0| | +-- source-map@0.5.7| | `-- trim-right@1.0.1| +-- babel-helpers@6.24.1| +-- babel-messages@6.23.0| +-- babel-runtime@6.26.0| | `-- regenerator-runtime@0.11.0| +-- babel-template@6.26.0| +-- babel-traverse@6.26.0| | `-- globals@9.18.0| +-- babel-types@6.26.0| | `-- to-fast-properties@1.0.3| +-- babylon@6.18.0| +-- convert-source-map@1.5.0| +-- debug@2.6.9| | `-- ms@2.0.0| +-- json5@0.5.1| +-- lodash@4.17.4| +-- minimatch@3.0.4| | `-- brace-expansion@1.1.8| | +-- balanced-match@1.0.0| | `-- concat-map@0.0.1| +-- path-is-absolute@1.0.1| +-- private@0.1.7| +-- slash@1.0.0| `-- source-map@0.5.7+-- babel-loader@7.1.2| +-- find-cache-dir@1.0.0| | +-- commondir@1.0.1| | +-- make-dir@1.0.0| | | `-- pify@2.3.0| | `-- pkg-dir@2.0.0| +-- loader-utils@1.1.0| | +-- big.js@3.2.0| | `-- emojis-list@2.1.0| `-- mkdirp@0.5.1| `-- minimist@0.0.8+-- babel-plugin-istanbul@4.1.5| +-- find-up@2.1.0| | `-- locate-path@2.0.0| | +-- p-locate@2.0.0| | | `-- p-limit@1.1.0| | `-- path-exists@3.0.0| +-- istanbul-lib-instrument@1.8.0| | `-- istanbul-lib-coverage@1.1.1| `-- test-exclude@4.1.1| +-- arrify@1.0.1| +-- read-pkg-up@1.0.1| | +-- find-up@1.1.2| | | +-- path-exists@2.1.0| | | `-- pinkie-promise@2.0.1| | | `-- pinkie@2.0.4| | `-- read-pkg@1.1.0| | +-- load-json-file@1.1.0| | | `-- strip-bom@2.0.0| | | `-- is-utf8@0.2.1| | `-- path-type@1.1.0| `-- require-main-filename@1.0.1+-- babel-plugin-transform-runtime@6.23.0+-- babel-preset-env@1.6.0| +-- babel-plugin-check-es2015-constants@6.22.0| +-- babel-plugin-syntax-trailing-function-commas@6.22.0| +-- babel-plugin-transform-async-to-generator@6.24.1| | +-- babel-helper-remap-async-to-generator@6.24.1| | `-- babel-plugin-syntax-async-functions@6.13.0| +-- babel-plugin-transform-es2015-arrow-functions@6.22.0| +-- babel-plugin-transform-es2015-block-scoped-functions@6.22.0| +-- babel-plugin-transform-es2015-block-scoping@6.26.0| +-- babel-plugin-transform-es2015-classes@6.24.1| | +-- babel-helper-define-map@6.26.0| | +-- babel-helper-function-name@6.24.1| | +-- babel-helper-optimise-call-expression@6.24.1| | `-- babel-helper-replace-supers@6.24.1| +-- babel-plugin-transform-es2015-computed-properties@6.24.1| +-- babel-plugin-transform-es2015-destructuring@6.23.0| +-- babel-plugin-transform-es2015-duplicate-keys@6.24.1| +-- babel-plugin-transform-es2015-for-of@6.23.0| +-- babel-plugin-transform-es2015-function-name@6.24.1| +-- babel-plugin-transform-es2015-literals@6.22.0| +-- babel-plugin-transform-es2015-modules-amd@6.24.1| +-- babel-plugin-transform-es2015-modules-commonjs@6.26.0| | `-- babel-plugin-transform-strict-mode@6.24.1| +-- babel-plugin-transform-es2015-modules-systemjs@6.24.1| | `-- babel-helper-hoist-variables@6.24.1| +-- babel-plugin-transform-es2015-modules-umd@6.24.1| +-- babel-plugin-transform-es2015-object-super@6.24.1| +-- babel-plugin-transform-es2015-parameters@6.24.1| | +-- babel-helper-call-delegate@6.24.1| | `-- babel-helper-get-function-arity@6.24.1| +-- babel-plugin-transform-es2015-shorthand-properties@6.24.1| +-- babel-plugin-transform-es2015-spread@6.22.0| +-- babel-plugin-transform-es2015-sticky-regex@6.24.1| | `-- babel-helper-regex@6.26.0| +-- babel-plugin-transform-es2015-template-literals@6.22.0| +-- babel-plugin-transform-es2015-typeof-symbol@6.23.0| +-- babel-plugin-transform-es2015-unicode-regex@6.24.1| | `-- regexpu-core@2.0.0| | +-- regenerate@1.3.3| | +-- regjsgen@0.2.0| | `-- regjsparser@0.1.5| | `-- jsesc@0.5.0| +-- babel-plugin-transform-exponentiation-operator@6.24.1| | +-- babel-helper-builder-binary-assignment-operator-visitor@6.24.1| | | `-- babel-helper-explode-assignable-expression@6.24.1| | `-- babel-plugin-syntax-exponentiation-operator@6.13.0| +-- babel-plugin-transform-regenerator@6.26.0| | `-- regenerator-transform@0.10.1| `-- invariant@2.2.2| `-- loose-envify@1.3.1+-- babel-preset-stage-2@6.24.1| +-- babel-plugin-syntax-dynamic-import@6.18.0| +-- babel-plugin-transform-class-properties@6.24.1| | `-- babel-plugin-syntax-class-properties@6.13.0| +-- babel-plugin-transform-decorators@6.24.1| | +-- babel-helper-explode-class@6.24.1| | | `-- babel-helper-bindify-decorators@6.24.1| | `-- babel-plugin-syntax-decorators@6.13.0| `-- babel-preset-stage-3@6.24.1| +-- babel-plugin-transform-async-generator-functions@6.24.1| | `-- babel-plugin-syntax-async-generators@6.13.0| `-- babel-plugin-transform-object-rest-spread@6.26.0| `-- babel-plugin-syntax-object-rest-spread@6.13.0+-- babel-register@6.26.0| +-- core-js@2.5.1| +-- home-or-tmp@2.0.0| | +-- os-homedir@1.0.2| | `-- os-tmpdir@1.0.2| `-- source-map-support@0.4.18| `-- source-map@0.5.7+-- chai@4.1.2| +-- assertion-error@1.0.2| +-- check-error@1.0.2| +-- deep-eql@3.0.1| +-- get-func-name@2.0.0| +-- pathval@1.1.0| `-- type-detect@4.0.3+-- chalk@2.1.0| +-- ansi-styles@3.2.0| | `-- color-convert@1.9.0| | `-- color-name@1.1.3| +-- escape-string-regexp@1.0.5| `-- supports-color@4.4.0| `-- has-flag@2.0.0+-- chromedriver@2.33.1| +-- extract-zip@1.6.5| | +-- concat-stream@1.6.0| | | `-- typedarray@0.0.6| | +-- debug@2.2.0| | | `-- ms@0.7.1| | +-- mkdirp@0.5.0| | `-- yauzl@2.4.1| | `-- fd-slicer@1.0.1| | `-- pend@1.2.0| +-- kew@0.7.0| `-- request@2.83.0| +-- aws-sign2@0.7.0| +-- aws4@1.6.0| +-- caseless@0.12.0| +-- combined-stream@1.0.5| | `-- delayed-stream@1.0.0| +-- extend@3.0.1| +-- forever-agent@0.6.1| +-- form-data@2.3.1| | `-- asynckit@0.4.0| +-- har-validator@5.0.3| | `-- har-schema@2.0.0| +-- hawk@6.0.2| | +-- boom@4.3.1| | +-- cryptiles@3.1.2| | | `-- boom@5.2.0| | +-- hoek@4.2.0| | `-- sntp@2.0.2| +-- http-signature@1.2.0| | +-- assert-plus@1.0.0| | +-- jsprim@1.4.1| | | +-- extsprintf@1.3.0| | | +-- json-schema@0.2.3| | | `-- verror@1.10.0| | `-- sshpk@1.13.1| | +-- asn1@0.2.3| | +-- bcrypt-pbkdf@1.0.1| | +-- dashdash@1.14.1| | +-- ecc-jsbn@0.1.1| | +-- getpass@0.1.7| | +-- jsbn@0.1.1| | `-- tweetnacl@0.14.5| +-- is-typedarray@1.0.0| +-- isstream@0.1.2| +-- json-stringify-safe@5.0.1| +-- mime-types@2.1.17| | `-- mime-db@1.30.0| +-- oauth-sign@0.8.2| +-- performance-now@2.1.0| +-- stringstream@0.0.5| +-- tough-cookie@2.3.3| +-- tunnel-agent@0.6.0| `-- uuid@3.1.0+-- connect-history-api-fallback@1.3.0+-- copy-webpack-plugin@4.1.1| +-- bluebird@3.5.1| +-- fs-extra@4.0.2| | +-- jsonfile@4.0.0| | `-- universalify@0.1.1| +-- glob@7.1.2| | +-- fs.realpath@1.0.0| | +-- inflight@1.0.6| | | `-- wrappy@1.0.2| | +-- inherits@2.0.3| | `-- once@1.4.0| +-- is-glob@4.0.0| | `-- is-extglob@2.1.1| +-- loader-utils@0.2.17| `-- node-dir@0.1.17+-- cross-env@5.0.5| `-- is-windows@1.0.1+-- cross-spawn@5.1.0| +-- lru-cache@4.1.1| | +-- pseudomap@1.0.2| | `-- yallist@2.1.2| +-- shebang-command@1.2.0| | `-- shebang-regex@1.0.0| `-- which@1.3.0| `-- isexe@2.0.0+-- css-loader@0.28.7| +-- css-selector-tokenizer@0.7.0| | +-- cssesc@0.1.0| | +-- fastparse@1.1.1| | `-- regexpu-core@1.0.0| +-- cssnano@3.10.0| | +-- autoprefixer@6.7.7| | | +-- browserslist@1.7.7| | | `-- caniuse-db@1.0.30000746| | +-- decamelize@1.2.0| | +-- defined@1.0.0| | +-- has@1.0.1| | | `-- function-bind@1.1.1| | +-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-calc@5.3.1| | | +-- postcss@5.2.18| | | | +-- chalk@1.1.3| | | | | +-- ansi-styles@2.2.1| | | | | `-- supports-color@2.0.0| | | | +-- source-map@0.5.7| | | | `-- supports-color@3.2.3| | | | `-- has-flag@1.0.0| | | +-- postcss-message-helpers@2.0.0| | | `-- reduce-css-calc@1.3.0| | | +-- balanced-match@0.4.2| | | +-- math-expression-evaluator@1.2.17| | | `-- reduce-function-call@1.0.2| | | `-- balanced-match@0.4.2| | +-- postcss-colormin@2.2.2| | | +-- colormin@1.1.2| | | | +-- color@0.11.4| | | | | +-- clone@1.0.2| | | | | `-- color-string@0.3.0| | | | `-- css-color-names@0.0.4| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-convert-values@2.6.1| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-discard-comments@2.0.4| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-discard-duplicates@2.1.0| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-discard-empty@2.1.0| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-discard-overridden@0.1.1| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-discard-unused@2.2.3| | | +-- postcss@5.2.18| | | | +-- chalk@1.1.3| | | | | +-- ansi-styles@2.2.1| | | | | `-- supports-color@2.0.0| | | | +-- source-map@0.5.7| | | | `-- supports-color@3.2.3| | | | `-- has-flag@1.0.0| | | `-- uniqs@2.0.0| | +-- postcss-filter-plugins@2.0.2| | | +-- postcss@5.2.18| | | | +-- chalk@1.1.3| | | | | +-- ansi-styles@2.2.1| | | | | `-- supports-color@2.0.0| | | | +-- source-map@0.5.7| | | | `-- supports-color@3.2.3| | | | `-- has-flag@1.0.0| | | `-- uniqid@4.1.1| | | `-- macaddress@0.2.8| | +-- postcss-merge-idents@2.1.7| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-merge-longhand@2.0.2| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-merge-rules@2.1.2| | | +-- browserslist@1.7.7| | | +-- caniuse-api@1.6.1| | | | +-- browserslist@1.7.7| | | | +-- lodash.memoize@4.1.2| | | | `-- lodash.uniq@4.5.0| | | +-- postcss@5.2.18| | | | +-- chalk@1.1.3| | | | | +-- ansi-styles@2.2.1| | | | | `-- supports-color@2.0.0| | | | +-- source-map@0.5.7| | | | `-- supports-color@3.2.3| | | | `-- has-flag@1.0.0| | | `-- vendors@1.0.1| | +-- postcss-minify-font-values@1.0.5| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-minify-gradients@1.0.5| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-minify-params@1.2.2| | | +-- alphanum-sort@1.0.2| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-minify-selectors@2.1.1| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-normalize-charset@1.1.1| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-normalize-url@3.0.8| | | +-- is-absolute-url@2.1.0| | | +-- normalize-url@1.9.1| | | | +-- prepend-http@1.0.4| | | | +-- query-string@4.3.4| | | | | `-- strict-uri-encode@1.1.0| | | | `-- sort-keys@1.1.2| | | | `-- is-plain-obj@1.1.0| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-ordered-values@2.2.3| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-reduce-idents@2.4.0| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-reduce-initial@1.0.1| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-reduce-transforms@1.0.4| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | +-- postcss-svgo@2.1.6| | | +-- is-svg@2.1.0| | | | `-- html-comment-regex@1.1.1| | | +-- postcss@5.2.18| | | | +-- chalk@1.1.3| | | | | +-- ansi-styles@2.2.1| | | | | `-- supports-color@2.0.0| | | | +-- source-map@0.5.7| | | | `-- supports-color@3.2.3| | | | `-- has-flag@1.0.0| | | `-- svgo@0.7.2| | | +-- coa@1.0.4| | | | `-- q@1.5.0| | | +-- csso@2.3.2| | | | +-- clap@1.2.3| | | | | `-- chalk@1.1.3| | | | | +-- ansi-styles@2.2.1| | | | | `-- supports-color@2.0.0| | | | `-- source-map@0.5.7| | | +-- sax@1.2.4| | | `-- whet.extend@0.9.9| | +-- postcss-unique-selectors@2.0.2| | | `-- postcss@5.2.18| | | +-- chalk@1.1.3| | | | +-- ansi-styles@2.2.1| | | | `-- supports-color@2.0.0| | | +-- source-map@0.5.7| | | `-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | `-- postcss-zindex@2.2.0| | `-- postcss@5.2.18| | +-- chalk@1.1.3| | | +-- ansi-styles@2.2.1| | | `-- supports-color@2.0.0| | +-- source-map@0.5.7| | `-- supports-color@3.2.3| | `-- has-flag@1.0.0| +-- icss-utils@2.1.0| +-- lodash.camelcase@4.3.0| +-- object-assign@4.1.1| +-- postcss@5.2.18| | +-- chalk@1.1.3| | | +-- ansi-styles@2.2.1| | | `-- supports-color@2.0.0| | +-- js-base64@2.3.2| | +-- source-map@0.5.7| | `-- supports-color@3.2.3| | `-- has-flag@1.0.0| +-- postcss-modules-extract-imports@1.1.0| +-- postcss-modules-local-by-default@1.2.0| +-- postcss-modules-scope@1.1.0| +-- postcss-modules-values@1.3.0| | `-- icss-replace-symbols@1.1.0| `-- source-list-map@2.0.0+-- eventsource-polyfill@0.9.6+-- express@4.16.2| +-- accepts@1.3.4| | `-- negotiator@0.6.1| +-- array-flatten@1.1.1| +-- body-parser@1.18.2| | +-- bytes@3.0.0| | +-- http-errors@1.6.2| | | `-- setprototypeof@1.0.3| | +-- iconv-lite@0.4.19| | `-- raw-body@2.3.2| +-- content-disposition@0.5.2| +-- content-type@1.0.4| +-- cookie@0.3.1| +-- cookie-signature@1.0.6| +-- depd@1.1.1| +-- encodeurl@1.0.1| +-- escape-html@1.0.3| +-- etag@1.8.1| +-- finalhandler@1.1.0| | `-- unpipe@1.0.0| +-- fresh@0.5.2| +-- merge-descriptors@1.0.1| +-- methods@1.1.2| +-- on-finished@2.3.0| | `-- ee-first@1.1.1| +-- parseurl@1.3.2| +-- path-to-regexp@0.1.7| +-- proxy-addr@2.0.2| | +-- forwarded@0.1.2| | `-- ipaddr.js@1.5.2| +-- qs@6.5.1| +-- range-parser@1.2.0| +-- safe-buffer@5.1.1| +-- send@0.16.1| | `-- destroy@1.0.4| +-- serve-static@1.13.1| +-- setprototypeof@1.1.0| +-- statuses@1.3.1| +-- type-is@1.6.15| | `-- media-typer@0.3.0| +-- utils-merge@1.0.1| `-- vary@1.1.2+-- extract-text-webpack-plugin@3.0.1| +-- async@2.5.0| +-- schema-utils@0.3.0| `-- webpack-sources@1.0.1| `-- source-map@0.5.7+-- file-loader@1.1.5+-- friendly-errors-webpack-plugin@1.6.1| +-- chalk@1.1.3| | +-- ansi-styles@2.2.1| | +-- has-ansi@2.0.0| | `-- supports-color@2.0.0| +-- error-stack-parser@2.0.1| | `-- stackframe@1.0.4| `-- string-length@1.0.1+-- html-webpack-plugin@2.30.1| +-- html-minifier@3.5.5| | +-- camel-case@3.0.0| | | +-- no-case@2.3.2| | | | `-- lower-case@1.1.4| | | `-- upper-case@1.1.3| | +-- clean-css@4.1.9| | | `-- source-map@0.5.7| | +-- ncname@1.0.0| | | `-- xml-char-classes@1.0.0| | +-- param-case@2.1.1| | +-- relateurl@0.2.7| | `-- uglify-js@3.1.3| | `-- source-map@0.5.7| +-- loader-utils@0.2.17| +-- pretty-error@2.1.1| | +-- renderkid@2.0.1| | | +-- css-select@1.2.0| | | | +-- boolbase@1.0.0| | | | +-- css-what@2.1.0| | | | +-- domutils@1.5.1| | | | | `-- dom-serializer@0.1.0| | | | | +-- domelementtype@1.1.3| | | | | `-- entities@1.1.1| | | | `-- nth-check@1.0.1| | | +-- dom-converter@0.1.4| | | | `-- utila@0.3.3| | | +-- htmlparser2@3.3.0| | | | +-- domelementtype@1.3.0| | | | +-- domhandler@2.1.0| | | | +-- domutils@1.1.6| | | | `-- readable-stream@1.0.34| | | | +-- isarray@0.0.1| | | | `-- string_decoder@0.10.31| | | `-- utila@0.3.3| | `-- utila@0.4.0| `-- toposort@1.0.6+-- http-proxy-middleware@0.17.4| +-- http-proxy@1.16.2| | +-- eventemitter3@1.2.0| | `-- requires-port@1.0.0| +-- is-glob@3.1.0| | `-- is-extglob@2.1.1| `-- micromatch@2.3.11| +-- arr-diff@2.0.0| | `-- arr-flatten@1.1.0| +-- array-unique@0.2.1| +-- braces@1.8.5| | +-- expand-range@1.8.2| | | `-- fill-range@2.2.3| | | +-- is-number@2.1.0| | | +-- isobject@2.1.0| | | +-- randomatic@1.1.7| | | | +-- is-number@3.0.0| | | | | `-- kind-of@3.2.2| | | | `-- kind-of@4.0.0| | | `-- repeat-string@1.6.1| | +-- preserve@0.2.0| | `-- repeat-element@1.1.2| +-- expand-brackets@0.1.5| | `-- is-posix-bracket@0.1.1| +-- extglob@0.3.2| +-- filename-regex@2.0.1| +-- is-extglob@1.0.0| +-- is-glob@2.0.1| +-- kind-of@3.2.2| | `-- is-buffer@1.1.5| +-- normalize-path@2.1.1| | `-- remove-trailing-separator@1.1.0| +-- object.omit@2.0.1| | +-- for-own@0.1.5| | | `-- for-in@1.0.2| | `-- is-extendable@0.1.1| +-- parse-glob@3.0.4| | +-- glob-base@0.3.0| | `-- is-dotfile@1.0.3| `-- regex-cache@0.4.4| `-- is-equal-shallow@0.1.3| `-- is-primitive@2.0.0+-- inject-loader@3.0.1+-- karma@1.7.1| +-- chokidar@1.7.0| | +-- anymatch@1.3.2| | +-- async-each@1.0.1| | +-- glob-parent@2.0.0| | +-- is-binary-path@1.0.1| | | `-- binary-extensions@1.10.0| | `-- readdirp@2.1.0| | `-- set-immediate-shim@1.0.1| +-- colors@1.1.2| +-- combine-lists@1.0.1| +-- connect@3.6.5| | `-- finalhandler@1.0.6| +-- di@0.0.1| +-- dom-serialize@2.2.1| | +-- custom-event@1.0.1| | +-- ent@2.2.0| | `-- void-elements@2.0.1| +-- expand-braces@0.1.2| | +-- array-slice@0.2.3| | `-- braces@0.1.5| | `-- expand-range@0.1.1| | +-- is-number@0.1.1| | `-- repeat-string@0.2.2| +-- graceful-fs@4.1.11| +-- isbinaryfile@3.0.2| +-- lodash@3.10.1| +-- log4js@0.6.38| | +-- readable-stream@1.0.34| | | +-- core-util-is@1.0.2| | | +-- isarray@0.0.1| | | `-- string_decoder@0.10.31| | `-- semver@4.3.6| +-- mime@1.4.1| +-- optimist@0.6.1| | `-- wordwrap@0.0.3| +-- qjobs@1.1.5| +-- socket.io@1.7.3| | +-- debug@2.3.3| | | `-- ms@0.7.2| | +-- engine.io@1.8.3| | | +-- accepts@1.3.3| | | +-- base64id@1.0.0| | | +-- debug@2.3.3| | | | `-- ms@0.7.2| | | +-- engine.io-parser@1.3.2| | | | +-- after@0.8.2| | | | +-- arraybuffer.slice@0.0.6| | | | +-- base64-arraybuffer@0.1.5| | | | +-- blob@0.0.4| | | | `-- wtf-8@1.0.0| | | `-- ws@1.1.2| | | +-- options@0.0.6| | | `-- ultron@1.0.2| | +-- has-binary@0.1.7| | | `-- isarray@0.0.1| | +-- object-assign@4.1.0| | +-- socket.io-adapter@0.5.0| | | `-- debug@2.3.3| | | `-- ms@0.7.2| | +-- socket.io-client@1.7.3| | | +-- backo2@1.0.2| | | +-- component-bind@1.0.0| | | +-- component-emitter@1.2.1| | | +-- debug@2.3.3| | | | `-- ms@0.7.2| | | +-- engine.io-client@1.8.3| | | | +-- component-emitter@1.2.1| | | | +-- component-inherit@0.0.3| | | | +-- debug@2.3.3| | | | | `-- ms@0.7.2| | | | +-- has-cors@1.1.0| | | | +-- parsejson@0.0.3| | | | +-- parseqs@0.0.5| | | | +-- xmlhttprequest-ssl@1.5.3| | | | `-- yeast@0.1.2| | | +-- indexof@0.0.1| | | +-- object-component@0.0.3| | | +-- parseuri@0.0.5| | | | `-- better-assert@1.0.2| | | | `-- callsite@1.0.0| | | `-- to-array@0.1.4| | `-- socket.io-parser@2.3.1| | +-- component-emitter@1.1.2| | +-- debug@2.2.0| | | `-- ms@0.7.1| | `-- isarray@0.0.1| +-- source-map@0.5.7| +-- tmp@0.0.31| `-- useragent@2.2.1| `-- lru-cache@2.2.4+-- karma-coverage@1.1.1| +-- dateformat@1.0.12| | +-- get-stdin@4.0.1| | `-- meow@3.7.0| | +-- camelcase-keys@2.1.0| | | `-- camelcase@2.1.1| | +-- loud-rejection@1.6.0| | | `-- currently-unhandled@0.4.1| | | `-- array-find-index@1.0.2| | +-- map-obj@1.0.1| | +-- minimist@1.2.0| | +-- normalize-package-data@2.4.0| | | +-- hosted-git-info@2.5.0| | | +-- is-builtin-module@1.0.0| | | | `-- builtin-modules@1.1.1| | | `-- validate-npm-package-license@3.0.1| | | +-- spdx-correct@1.0.2| | | | `-- spdx-license-ids@1.2.2| | | `-- spdx-expression-parse@1.0.4| | +-- redent@1.0.0| | | +-- indent-string@2.1.0| | | `-- strip-indent@1.0.1| | `-- trim-newlines@1.0.0| +-- istanbul@0.4.5| | +-- abbrev@1.0.9| | +-- async@1.5.2| | +-- escodegen@1.8.1| | | +-- estraverse@1.9.3| | | +-- optionator@0.8.2| | | | +-- deep-is@0.1.3| | | | +-- fast-levenshtein@2.0.6| | | | +-- levn@0.3.0| | | | +-- prelude-ls@1.1.2| | | | +-- type-check@0.3.2| | | | `-- wordwrap@1.0.0| | | `-- source-map@0.2.0| | +-- esprima@2.7.3| | +-- glob@5.0.15| | +-- handlebars@4.0.10| | | +-- async@1.5.2| | | +-- source-map@0.4.4| | | `-- uglify-js@2.8.29| | | `-- source-map@0.5.7| | +-- js-yaml@3.7.0| | | `-- argparse@1.0.9| | | `-- sprintf-js@1.0.3| | +-- nopt@3.0.6| | +-- resolve@1.1.7| | +-- supports-color@3.2.3| | | `-- has-flag@1.0.0| | `-- wordwrap@1.0.0| +-- lodash@3.10.1| `-- source-map@0.5.7+-- karma-mocha@1.3.0| `-- minimist@1.2.0+-- karma-phantomjs-shim@1.5.0+-- karma-sinon-chai@1.3.2| `-- lolex@1.6.0+-- karma-sourcemap-loader@0.3.7+-- karma-spec-reporter@0.0.31+-- karma-webpack@2.0.5| +-- async@0.9.2| +-- loader-utils@0.2.17| +-- lodash@3.10.1| `-- source-map@0.1.43| `-- amdefine@1.0.1+-- mocha@3.5.3| +-- browser-stdout@1.3.0| +-- commander@2.9.0| | `-- graceful-readlink@1.0.1| +-- debug@2.6.8| +-- diff@3.2.0| +-- glob@7.1.1| +-- growl@1.9.2| +-- he@1.1.1| +-- json3@3.3.2| +-- lodash.create@3.1.1| | +-- lodash._baseassign@3.2.0| | | +-- lodash._basecopy@3.0.1| | | `-- lodash.keys@3.1.2| | | +-- lodash._getnative@3.9.1| | | `-- lodash.isarguments@3.1.0| | +-- lodash._basecreate@3.0.3| | `-- lodash._isiterateecall@3.0.9| `-- supports-color@3.1.2| `-- has-flag@1.0.0+-- nightwatch@0.9.16| +-- chai-nightwatch@0.1.1| | +-- assertion-error@1.0.0| | `-- deep-eql@0.1.3| | `-- type-detect@0.1.1| +-- ejs@0.8.3| +-- lodash.clone@3.0.3| | +-- lodash._baseclone@3.3.0| | | +-- lodash._arraycopy@3.0.0| | | +-- lodash._arrayeach@3.0.0| | | +-- lodash._basefor@3.0.3| | | `-- lodash.isarray@3.0.4| | `-- lodash._bindcallback@3.0.1| +-- lodash.defaultsdeep@4.3.2| | +-- lodash._baseclone@4.5.7| | +-- lodash._stack@4.1.3| | +-- lodash.isplainobject@4.0.6| | +-- lodash.keysin@4.2.0| | +-- lodash.mergewith@4.6.0| | `-- lodash.rest@4.0.5| +-- minimatch@3.0.3| +-- mkpath@1.0.0| +-- mocha-nightwatch@3.2.2| | +-- commander@2.9.0| | +-- debug@2.2.0| | | `-- ms@0.7.1| | +-- diff@1.4.0| | +-- glob@7.0.5| | `-- supports-color@3.1.2| | `-- has-flag@1.0.0| +-- proxy-agent@2.0.0| | +-- agent-base@2.1.1| | | `-- semver@5.0.3| | +-- http-proxy-agent@1.0.0| | +-- https-proxy-agent@1.0.0| | +-- lru-cache@2.6.5| | +-- pac-proxy-agent@1.1.0| | | +-- get-uri@2.0.1| | | | +-- data-uri-to-buffer@1.2.0| | | | +-- file-uri-to-path@1.0.0| | | | `-- ftp@0.3.10| | | | +-- readable-stream@1.1.14| | | | | +-- isarray@0.0.1| | | | | `-- string_decoder@0.10.31| | | | `-- xregexp@2.0.0| | | `-- pac-resolver@2.0.0| | | +-- co@3.0.6| | | +-- degenerator@1.0.4| | | | +-- ast-types@0.9.14| | | | `-- esprima@3.1.3| | | +-- ip@1.0.1| | | +-- netmask@1.0.6| | | `-- thunkify@2.1.2| | `-- socks-proxy-agent@2.1.1| | `-- socks@1.1.10| | +-- ip@1.1.5| | `-- smart-buffer@1.1.15| `-- q@1.4.1+-- opn@5.1.0| `-- is-wsl@1.1.0+-- optimize-css-assets-webpack-plugin@3.2.0| `-- last-call-webpack-plugin@2.1.2+-- ora@1.3.0| +-- chalk@1.1.3| | +-- ansi-styles@2.2.1| | `-- supports-color@2.0.0| +-- cli-cursor@2.1.0| | `-- restore-cursor@2.0.0| | +-- onetime@2.0.1| | | `-- mimic-fn@1.1.0| | `-- signal-exit@3.0.2| +-- cli-spinners@1.1.0| `-- log-symbols@1.0.2| `-- chalk@1.1.3| +-- ansi-styles@2.2.1| `-- supports-color@2.0.0+-- portfinder@1.0.13| `-- async@1.5.2+-- rimraf@2.6.2+-- selenium-server@3.6.0+-- semver@5.4.1+-- shelljs@0.7.8| +-- interpret@1.0.4| `-- rechoir@0.6.2+-- UNMET PEER DEPENDENCY sinon@4.0.1| +-- formatio@1.2.0| +-- lodash.get@4.4.2| +-- lolex@2.1.3| +-- native-promise-only@0.8.1| +-- nise@1.1.1| | +-- just-extend@1.1.22| | `-- path-to-regexp@1.7.0| | `-- isarray@0.0.1| +-- path-to-regexp@1.7.0| | `-- isarray@0.0.1| +-- samsam@1.3.0| `-- text-encoding@0.6.4+-- sinon-chai@2.14.0+-- url-loader@0.5.9| `-- mime@1.3.6+-- vue@2.4.4+-- vue-loader@13.3.0| +-- consolidate@0.14.5| +-- hash-sum@1.0.2| +-- postcss-load-config@1.2.0| | +-- cosmiconfig@2.2.2| | | +-- is-directory@0.3.1| | | +-- minimist@1.2.0| | | +-- parse-json@2.2.0| | | | `-- error-ex@1.3.1| | | | `-- is-arrayish@0.2.1| | | `-- require-from-string@1.2.1| | +-- postcss-load-options@1.2.0| | `-- postcss-load-plugins@2.3.0| +-- postcss-selector-parser@2.2.3| | +-- flatten@1.0.2| | +-- indexes-of@1.0.1| | `-- uniq@1.0.1| +-- prettier@1.7.4| +-- resolve@1.4.0| | `-- path-parse@1.0.5| +-- source-map@0.6.1| +-- vue-hot-reload-api@2.2.0| `-- vue-template-es2015-compiler@1.6.0+-- vue-router@2.8.0+-- vue-style-loader@3.0.3+-- vue-template-compiler@2.4.4| `-- de-indent@1.0.2+-- webpack@3.7.1| +-- acorn@5.1.2| +-- acorn-dynamic-import@2.0.2| | `-- acorn@4.0.13| +-- ajv@5.2.3| | +-- co@4.6.0| | +-- fast-deep-equal@1.0.0| | +-- json-schema-traverse@0.3.1| | `-- json-stable-stringify@1.0.1| | `-- jsonify@0.0.0| +-- ajv-keywords@2.1.0| +-- enhanced-resolve@3.4.1| +-- escope@3.6.0| | +-- es6-map@0.1.5| | | +-- d@1.0.0| | | +-- es5-ext@0.10.31| | | +-- es6-iterator@2.0.1| | | +-- es6-set@0.1.5| | | +-- es6-symbol@3.1.1| | | `-- event-emitter@0.3.5| | +-- es6-weak-map@2.0.2| | +-- esrecurse@4.2.0| | | `-- estraverse@4.2.0| | `-- estraverse@4.2.0| +-- json-loader@0.5.7| +-- loader-runner@2.3.0| +-- memory-fs@0.4.1| | +-- errno@0.1.4| | | `-- prr@0.0.0| | `-- readable-stream@2.3.3| | +-- isarray@1.0.0| | +-- process-nextick-args@1.0.7| | +-- string_decoder@1.0.3| | `-- util-deprecate@1.0.2| +-- node-libs-browser@2.0.0| | +-- assert@1.4.1| | +-- browserify-zlib@0.1.4| | | `-- pako@0.2.9| | +-- buffer@4.9.1| | | +-- base64-js@1.2.1| | | `-- ieee754@1.1.8| | +-- console-browserify@1.1.0| | | `-- date-now@0.1.4| | +-- constants-browserify@1.0.0| | +-- crypto-browserify@3.11.1| | | +-- browserify-cipher@1.0.0| | | | +-- browserify-aes@1.0.8| | | | | `-- buffer-xor@1.0.3| | | | +-- browserify-des@1.0.0| | | | | `-- des.js@1.0.0| | | | `-- evp_bytestokey@1.0.3| | | | `-- md5.js@1.3.4| | | | `-- hash-base@3.0.4| | | +-- browserify-sign@4.0.4| | | | +-- bn.js@4.11.8| | | | +-- browserify-rsa@4.0.1| | | | +-- elliptic@6.4.0| | | | | +-- brorand@1.1.0| | | | | +-- hash.js@1.1.3| | | | | +-- hmac-drbg@1.0.1| | | | | +-- minimalistic-assert@1.0.0| | | | | `-- minimalistic-crypto-utils@1.0.1| | | | `-- parse-asn1@5.1.0| | | | `-- asn1.js@4.9.1| | | +-- create-ecdh@4.0.0| | | +-- create-hash@1.1.3| | | | +-- cipher-base@1.0.4| | | | +-- ripemd160@2.0.1| | | | | `-- hash-base@2.0.2| | | | `-- sha.js@2.4.9| | | +-- create-hmac@1.1.6| | | +-- diffie-hellman@5.0.2| | | | `-- miller-rabin@4.0.1| | | +-- pbkdf2@3.0.14| | | +-- public-encrypt@4.0.0| | | `-- randombytes@2.0.5| | +-- domain-browser@1.1.7| | +-- events@1.1.1| | +-- https-browserify@0.0.1| | +-- os-browserify@0.2.1| | +-- path-browserify@0.0.0| | +-- process@0.11.10| | +-- punycode@1.4.1| | +-- querystring-es3@0.2.1| | +-- stream-browserify@2.0.1| | +-- stream-http@2.7.2| | | +-- builtin-status-codes@3.0.0| | | +-- to-arraybuffer@1.0.1| | | `-- xtend@4.0.1| | +-- string_decoder@0.10.31| | +-- timers-browserify@2.0.4| | | `-- setimmediate@1.0.5| | +-- tty-browserify@0.0.0| | +-- url@0.11.0| | | `-- punycode@1.3.2| | +-- util@0.10.3| | | `-- inherits@2.0.1| | `-- vm-browserify@0.0.4| +-- source-map@0.5.7| +-- tapable@0.2.8| +-- uglifyjs-webpack-plugin@0.4.6| | +-- source-map@0.5.7| | `-- uglify-js@2.8.29| | +-- uglify-to-browserify@1.0.2| | `-- yargs@3.10.0| | +-- camelcase@1.2.1| | +-- cliui@2.1.0| | | +-- center-align@0.1.3| | | | +-- align-text@0.1.4| | | | | `-- longest@1.0.1| | | | `-- lazy-cache@1.0.4| | | +-- right-align@0.1.3| | | `-- wordwrap@0.0.2| | `-- window-size@0.1.0| +-- watchpack@1.4.0| `-- yargs@8.0.2| +-- camelcase@4.1.0| +-- cliui@3.2.0| | +-- string-width@1.0.2| | | +-- code-point-at@1.1.0| | | `-- is-fullwidth-code-point@1.0.0| | `-- wrap-ansi@2.1.0| | `-- string-width@1.0.2| +-- get-caller-file@1.0.2| +-- os-locale@2.1.0| | +-- execa@0.7.0| | | +-- get-stream@3.0.0| | | +-- is-stream@1.1.0| | | +-- npm-run-path@2.0.2| | | | `-- path-key@2.0.1| | | +-- p-finally@1.0.0| | | `-- strip-eof@1.0.0| | +-- lcid@1.0.0| | | `-- invert-kv@1.0.0| | `-- mem@1.1.0| +-- read-pkg-up@2.0.0| | `-- read-pkg@2.0.0| | +-- load-json-file@2.0.0| | | `-- strip-bom@3.0.0| | `-- path-type@2.0.0| +-- require-directory@2.1.1| +-- set-blocking@2.0.0| +-- string-width@2.1.1| | +-- is-fullwidth-code-point@2.0.0| | `-- strip-ansi@4.0.0| | `-- ansi-regex@3.0.0| +-- which-module@2.0.0| +-- y18n@3.2.1| `-- yargs-parser@7.0.0| `-- camelcase@4.1.0+-- webpack-bundle-analyzer@2.9.0| +-- chalk@1.1.3| | +-- ansi-styles@2.2.1| | `-- supports-color@2.0.0| +-- commander@2.11.0| +-- ejs@2.5.7| +-- filesize@3.5.10| +-- gzip-size@3.0.0| | `-- duplexer@0.1.1| +-- opener@1.4.3| `-- ws@2.3.1| +-- safe-buffer@5.0.1| `-- ultron@1.1.0+-- webpack-dev-middleware@1.12.0| `-- time-stamp@2.0.0+-- webpack-hot-middleware@2.19.1| +-- ansi-html@0.0.7| +-- html-entities@1.2.1| +-- querystring@0.2.0| `-- strip-ansi@3.0.1| `-- ansi-regex@2.1.1`-- webpack-merge@4.1.0npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})npm WARN karma-sinon-chai@1.3.2 requires a peer of sinon@^2.1.0 but none was installed.npm ERR! Windows_NT 10.0.10240npm ERR! argv "E://nodejs//node.exe" "E://nodejs//node_modules//npm//bin//npm-cli.js" "install"npm ERR! node v6.11.4npm ERR! npm v3.10.10npm ERR! code ELIFECYCLEnpm ERR! phantomjs-prebuilt@2.1.15 install: `node install.js`npm ERR! Exit status 1npm ERR!npm ERR! Failed at the phantomjs-prebuilt@2.1.15 install script 'node install.js'.npm ERR! Make sure you have the latest version of node.js and npm installed.npm ERR! If you do, this is most likely a problem with the phantomjs-prebuilt package,npm ERR! not with npm itself.npm ERR! Tell the author that this fails on your system:npm ERR! node install.jsnpm ERR! You can get information on how to open an issue for this project with:npm ERR! npm bugs phantomjs-prebuiltnpm ERR! Or if that isn't available, you can get their info via:npm ERR! npm owner ls phantomjs-prebuiltnpm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request:npm ERR! C:/Users/81487/Desktop/test/npm-debug.log$ npm run dev> node build/dev-server.js> Starting dev server... DONE Compiled successfully in 15700ms23:48:41> Listening at http://localhost:8080
总结
以上所述是小编给大家介绍的使用命令行工具npm新创建一个vue项目的方法,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对武林网网站的支持!
新闻热点
疑难解答