vue无法在D创建脚手架


Windows PowerShell
版权所有 (C) Microsoft Corporation。保留所有权利。
尝试新的跨平台 PowerShell https://aka.ms/pscore6

PS C:\Users\Administrator> c:
PS C:\Users\Administrator> d:
PS D:\> cd D:\App\vue
PS D:\App\vue> npm inti
Unknown command: "inti"

To see a list of supported npm commands, run:
npm help
PS D:\App\vue> npm install
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path D:\App\vue/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'D:\App\vue\package.json'
npm ERR! enoent This is related to npm not being able to find a file.

npm ERR! C:\Users\Administrator\AppData\Local\npm-cache\_logs\2022-01-06T02_19_27_251Z-debug.log
PS D:\App\vue> node -v
v17.0.0
PS D:\App\vue> npm -v
8.1.0
PS D:\App\vue> npm list -global
D:\Program Files\nodejs\node_global
└── vue-cli@2.9.6

PS D:\App\vue> npm config list
; "builtin" config from D:\Program Files\nodejs\node_modules\npm\npmrc

; prefix = "C:\\Users\\Administrator\\AppData\\Roaming\\npm" ; overridden by user

; "user" config from C:\Users\Administrator\.npmrc

http-proxy = null
prefix = "D:\\Program Files\\nodejs\\node_global"
proxy = null
strict-ssl = false

; node bin location = D:\Program Files\nodejs\node.exe
; cwd = D:\App\vue
; HOME = C:\Users\Administrator
; Run `npm config ls -l` to show all defaults.
PS D:\App\vue> npm config get registry
http://registry.npm.taobao.org/
PS D:\App\vue> Npm info vue

vue@2.6.14 | MIT | deps: none | versions: 365

dist
.tarball: https://registry.npmmirror.com/vue/download/vue-2.6.14.tgz
.shasum: e51aa5250250d569a3fbad3a8a5a687d6036e235
.integrity: sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ==

maintainers:
- posva

dist-tags:
beta: 3.2.0-beta.8 csp: 1.0.28-csp latest: 2.6.14 next: 3.2.26

published 7 months ago by posva
PS D:\App\vue> npm install vue-router -g

added 1 package in 2s
PS D:\App\vue> npm install vue-cli -g
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 circumnpm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated vue-cli@2.9.6: This package has been deprecated in favour of @vue/cli

changed 237 packages in 18s

1 package is looking for funding
run `npm fund` for details
vue : 无法将“vue”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试
一次。
所在位置 行:1 字符: 1
+ vue -V
+ ~~~
+ CategoryInfo : ObjectNotFound: (vue:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

npm WARN deprecated har-validator@5.1.5: this library is no longer supported
stances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated vue-cli@2.9.6: This package has been deprecated in favour of @vue/cli

changed 237 packages in 19s

1 package is looking for funding
PS D:\App\vue> vue
vue : 无法将“vue”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试
一次。
所在位置 行:1 字符: 1
+ vue
+ ~~~
+ CategoryInfo : ObjectNotFound: (vue:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS D:\App\vue> vue init webpack vue01
vue : 无法将“vue”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试
所在位置 行:1 字符: 1
+ ~~~
+ CategoryInfo : ObjectNotFound: (vue:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS D:\App\vue> npm config get prefix
D:\Program Files\nodejs\node_global
PS D:\App\vue> vue --version
vue : 无法将“vue”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试
一次。
所在位置 行:1 字符: 1
+ vue --version
+ ~~~
+ CategoryInfo : ObjectNotFound: (vue:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS D:\App\vue> npm install vue-cli -g
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 request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated vue-cli@2.9.6: This package has been deprecated in favour of @vue/cli

changed 237 packages in 16s

1 package is looking for funding
run `npm fund` for details
PS D:\App\vue> npm config get prefix
D:\Program Files\nodejs\node_global
PS D:\App\vue> npm install
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path D:\App\vue/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'D:\App\vue\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Local\npm-cache\_logs\2022-01-06T02_33_09_301Z-debug.log
PS D:\App\vue> 4

相关