nodejs安装vue3.0

首先参考了作者的文章,感谢感谢。

Microsoft Windows [Version 10.0.17134.1845]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\Administrator>node -v
v14.17.4

C:\Users\Administrator>npm -v
6.14.14

C:\Users\Administrator>npm config set registry "https://registry.npm.taobao.org"

C:\Users\Administrator>npm install webpack -g
npm ERR! code EEXIST
npm ERR! path C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js
npm ERR! dest C:\Users\Administrator\AppData\Roaming\npm\webpack.cmd
npm ERR! EEXIST: file already exists, cmd shim 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js' -> 'C:\Users\Administrator\AppData\Roaming\npm\webpack.cmd'
npm ERR! File exists: C:\Users\Administrator\AppData\Roaming\npm\webpack.cmd
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2021-08-11T02_00_17_343Z-debug.log

C:\Users\Administrator>npm uninstall vue-cli -g
up to date in 0.051s

C:\Users\Administrator>npm uninstall vue-cli -g
up to date in 0.046s

C:\Users\Administrator>webpack -v
internal/modules/cjs/loader.js:892
  throw err;
  ^

Error: Cannot find module 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js'
[90m    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)[39m
[90m    at Function.Module._load (internal/modules/cjs/loader.js:745:27)[39m
[90m    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)[39m
[90m    at internal/main/run_main_module.js:17:47[39m {
  code: [32m'MODULE_NOT_FOUND'[39m,
  requireStack: []
}

C:\Users\Administrator>npm install webpack webpack-cli -g
npm ERR! code EEXIST
npm ERR! path C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js
npm ERR! dest C:\Users\Administrator\AppData\Roaming\npm\webpack-cli
npm ERR! EEXIST: file already exists, cmd shim 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js' -> 'C:\Users\Administrator\AppData\Roaming\npm\webpack-cli'
npm ERR! File exists: C:\Users\Administrator\AppData\Roaming\npm\webpack-cli
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2021-08-11T02_05_42_053Z-debug.log

C:\Users\Administrator>npm uninstall webpack -g
removed 73 packages in 1.416s

C:\Users\Administrator>npm uninstall webpack webpack-cli -g
up to date in 0.044s

C:\Users\Administrator>npm install webpack -g
C:\Users\Administrator\AppData\Roaming\npm\webpack -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js
+ webpack@5.50.0
added 73 packages from 123 contributors in 4.828s

C:\Users\Administrator>npm install webpack webpack-cli -g
C:\Users\Administrator\AppData\Roaming\npm\webpack -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js
npm ERR! code EEXIST
npm ERR! path C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js
npm ERR! dest C:\Users\Administrator\AppData\Roaming\npm\webpack-cli
npm ERR! EEXIST: file already exists, cmd shim 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js' -> 'C:\Users\Administrator\AppData\Roaming\npm\webpack-cli'
npm ERR! File exists: C:\Users\Administrator\AppData\Roaming\npm\webpack-cli
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2021-08-11T02_11_36_818Z-debug.log

C:\Users\Administrator>webpack -v
CLI for webpack must be installed.
  webpack-cli (https://github.com/webpack/webpack-cli)

We will use "npm" to install the CLI via "npm install -D webpack-cli".
Do you want to install 'webpack-cli' (yes/no): yes
Installing 'webpack-cli' (running 'npm install -D webpack-cli')...
npm WARN ajv-keywords@3.4.1 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-cli@4.7.2 requires a peer of webpack@4.x.x || 5.x.x but none is installed. You must install peer dependencies yourself.
npm WARN @webpack-cli/configtest@1.0.4 requires a peer of webpack@4.x.x || 5.x.x but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ webpack-cli@4.7.2
added 42 packages from 26 contributors in 46.063s

32 packages are looking for funding
  run `npm fund` for details

webpack undefined
webpack-cli 4.7.2
webpack-dev-server 2.11.5

C:\Users\Administrator>webpack -v
webpack undefined
webpack-cli 4.7.2
webpack-dev-server 2.11.5

C:\Users\Administrator>npm install -g @vue/cli
npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated graphql-tools@4.0.8: This package has been deprecated and now it only exports makeExecutableSchema.\nAnd it will no longer receive updates.\nWe recommend you to migrate to scoped packages such as @graphql-tools/schema, @graphql-tools/utils and etc.\nCheck out https://www.graphql-tools.com to learn what package you should use instead
npm WARN deprecated graphql-extensions@0.15.0: The  API has been removed from Apollo Server 3. Use the plugin API instead: https://www.apollographql.com/docs/apollo-server/integrations/plugins/
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2021-08-11T02_47_23_685Z-debug.log

C:\Users\Administrator>npm install -g @vue/cli
npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated graphql-tools@4.0.8: This package has been deprecated and now it only exports makeExecutableSchema.\nAnd it will no longer receive updates.\nWe recommend you to migrate to scoped packages such as @graphql-tools/schema, @graphql-tools/utils and etc.\nCheck out https://www.graphql-tools.com to learn what package you should use instead
npm WARN deprecated graphql-extensions@0.15.0: The  API has been removed from Apollo Server 3. Use the plugin API instead: https://www.apollographql.com/docs/apollo-server/integrations/plugins/
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
C:\Users\Administrator\AppData\Roaming\npm\vue -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vue\cli\bin\vue.js

> core-js-pure@3.16.1 postinstall C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js:
> https://opencollective.com/core-js
> https://patreon.com/zloirock
> https://paypal.me/zloirock
> bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> @apollo/protobufjs@1.2.2 postinstall C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\@apollo\protobufjs
> node scripts/postinstall


> ejs@2.7.4 postinstall C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

npm WARN ws@7.5.3 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.5.3 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.

+ @vue/cli@4.5.13
added 931 packages from 584 contributors in 90.87s

C:\Users\Administrator>vue -V
@vue/cli 4.5.13

C:\Users\Administrator>安装vue中途会卡住,按ctrl+c
'安装vue中途会卡住,按ctrl+c' は、内部コマンドまたは外部コマンド、
操作可能なプログラムまたはバッチ ファイルとして認識されていません。

C:\Users\Administrator>vue ui
🚀  Starting GUI...
🌠  Ready on http://localhost:8000
AggregateError:
    Error: Killing process : failed: Process doesn't exist
        at Array.map (<anonymous>)
        at fkill (C:/Users/Administrator/AppData/Roaming/npm/node_modules/@vue/cli/node_modules/fkill/index.js:113:9)
        at runMicrotasks (<anonymous>)
        at async C:/Users/Administrator/AppData/Roaming/npm/node_modules/@vue/cli/node_modules/@vue/cli-ui/ui-defaults/widgets.js:51:7
        at async Object.callAction (C:/Users/Administrator/AppData/Roaming/npm/node_modules/@vue/cli/node_modules/@vue/cli-ui/apollo-server/connectors/plugins.js:615:18)
    at fkill (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\fkill\index.js:113:9)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\@vue\cli-ui\ui-defaults\widgets.js:51:7
    at async Object.callAction (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\@vue\cli-ui\apollo-server\connectors\plugins.js:615:18)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值