активными помощниками..... в общем сидел сидел, пыхтел пыхтел, но добился результата, путь был тернистый поэтому сам даже не понял что было и что именно помогло, но для профита всех и вдруг у кого то еще возникнет, в общем вырезки из терминала:
Microsoft Windows [Version 10.0.19045.2965]
(c) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.
C:\test5>npm init vue@latest
Vue.js - The Progressive JavaScript Framework
√ Project name: ... vue-project
√ Add TypeScript? ... No / Yes
√ Add JSX Support? ... No / Yes
√ Add Vue Router for Single Page Application development? ... No / Yes
√ Add Pinia for state management? ... No / Yes
√ Add Vitest for Unit Testing? ... No / Yes
√ Add an End-to-End Testing Solution? » No
√ Add ESLint for code quality? ... No / Yes
Scaffolding project in C:\test5\vue-project...
Done. Now run:
cd vue-project
npm install
npm run dev
C:\test5>
C:\test5>cd vue-project
C:\test5\vue-project>npm i
added 20 packages, and audited 21 packages in 4s
2 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
C:\test5\vue-project>npm uninstall -g vite
up to date in 56ms
C:\test5\vue-project>npm uninstall vite
up to date, audited 21 packages in 707ms
2 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
C:\test5\vue-project>npm i
added 20 packages, and audited 21 packages in 1s
2 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
C:\test5\vue-project>npm install vite --save-dev
up to date, audited 21 packages in 2s
2 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
C:\test5\vue-project>npm i
up to date, audited 21 packages in 689ms
2 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
C:\test5\vue-project>npm run dev
> vue-project@0.0.0 dev
> vite
"vite" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
C:\test5\vue-project>npm ls vite
vue-project@0.0.0 C:\test5\vue-project
`-- (empty)
C:\test5\vue-project>npx vite
Need to install the following packages:
vite@4.3.5
Ok to proceed? (y) y
failed to load config from C:\test5\vue-project\vite.config.js
error when starting dev server:
Error: Cannot find module 'vite'
Require stack:
- C:\test5\vue-project\vite.config.js
- C:\Users\korolev\AppData\Local\npm-cache\_npx\9ed06546b0653f96\node_modules\vite\dist\node\chunks\dep-934dbc7c.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
at Module._load (node:internal/modules/cjs/loader:920:27)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.<anonymous> (C:\test5\vue-project\vite.config.js:36:19)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at _require.extensions.<computed> [as .js] (file:///C:/Users/korolev/AppData/Local/npm-cache/_npx/9ed06546b0653f96/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:64450:24)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
C:\test5\vue-project>npm install vite --save-dev up to date, audited 21 packages in 872ms 2 packages are looking for funding run `npm fund` for details found 0 vulnerabilities C:\test5\vue-project>npm install vite --dev npm WARN config dev Please use --include=dev instead. added 5 packages, and audited 26 packages in 2s 2 packages are looking for funding run `npm fund` for details found 0 vulnerabilities C:\test5\vue-project>npm i up to date, audited 21 packages in 697ms 2 packages are looking for funding run `npm fund` for details found 0 vulnerabilities C:\test5\vue-project>npm run dev > vue-project@0.0.0 dev > vite "vite" не является внутренней или внешней командой, исполняемой программой или пакетным файлом. C:\test5\vue-project>npm install vite -\-dev up to date, audited 21 packages in 2s 2 packages are looking for funding run `npm fund` for details found 0 vulnerabilities C:\test5\vue-project>npm install vite --dev npm WARN config dev Please use --include=dev instead. added 5 packages, and audited 26 packages in 2s 2 packages are looking for funding run `npm fund` for details found 0 vulnerabilities C:\test5\vue-project>npm run dev > vue-project@0.0.0 dev > vite VITE v4.3.5 ready in 417 ms ➜ Local: http://localhost:5173/ ➜ Network: use --host to expose ➜ press h to show help
Я думав, що зламав телеграм
Обсуждают сегодня