当前位置:   article > 正文

mac 安装vue

mac 安装vue

一、安装nodejs

官网直接下载 Node.js

 

This package has installed: 

  • Node.js v16.15.1 to /usr/local/bin/node
  • npm v8.11.0 to /usr/local/bin/npm

Make sure that /usr/local/bin is in your $PATH.

二、使用 npm安装cnpm

sudo npm install -g cnpm --registry=https://registry.npm.taobao.org

  1. sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
  2. Password:
  3. npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
  4. added 361 packages in 17s
  5. 11 packages are looking for funding
  6. run `npm fund` for details
  7. npm notice
  8. npm notice New minor version of npm available! 8.11.0 -> 8.12.1
  9. npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.12.1
  10. npm notice Run npm install -g npm@8.12.1 to update!
  11. npm notice

三、安装vue-cli 脚手架 

sudo npm install -g @vue/cli

  1. sudo npm install -g @vue/cli
  2. npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
  3. npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
  4. npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
  5. npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
  6. npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
  7. npm WARN deprecated graphql-extensions@0.15.0: The `graphql-extensions` API has been removed from Apollo Server 3. Use the plugin API instead: https://www.apollographql.com/docs/apollo-server/integrations/plugins/
  8. npm WARN deprecated apollo-tracing@0.15.0: The `apollo-tracing` package is no longer part of Apollo Server 3. See https://www.apollographql.com/docs/apollo-server/migration/#tracing for details
  9. npm WARN deprecated apollo-cache-control@0.14.0: The functionality provided by the `apollo-cache-control` package is built in to `apollo-server-core` starting with Apollo Server 3. See https://www.apollographql.com/docs/apollo-server/migration/#cachecontrol for details.
  10. 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.
  11. npm WARN deprecated subscriptions-transport-ws@0.9.19: The `subscriptions-transport-ws` package is no longer maintained. We recommend you use `graphql-ws` instead. For help migrating Apollo software to `graphql-ws`, see https://www.apollographql.com/docs/apollo-server/data/subscriptions/#switching-from-subscriptions-transport-ws For general help using `graphql-ws`, see https://github.com/enisdenjo/graphql-ws/blob/master/README.md
  12. 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
  13. added 897 packages, and audited 898 packages in 5m
  14. 89 packages are looking for funding
  15. run `npm fund` for details
  16. 6 high severity vulnerabilities
  17. To address all issues (including breaking changes), run:
  18. npm audit fix --force
  19. Run `npm audit` for details.

 使用 npm -v cnpm-v查看是否成功

运行一个vue项目 npm run 找到要运行的script

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小惠珠哦/article/detail/777449
推荐阅读
相关标签
  

闽ICP备14008679号