Здравствуйте. Во время установки Vue.js в терминале не появляется ссылка на localhost. Ввел команду npm run serve. Подскажите, пожалуйста, как это исправить. Во время установки точно следовал обучающему видео.
$ npm run serve
> vue-project@0.1.0 serve
> vue-cli-service serve
INFO Starting development server...
10% building 2/5 modules 3 active ...modules\babel-loader\lib\index.js!C:\Users\Asus\Desktop\Vue\vue-project\src\main.jsError: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:130:10)
at module.exports (C:\Users\Asus\Desktop\Vue\vue-project\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (C:\Users\Asus\Desktop\Vue\vue-project\node_modules\webpack\lib\NormalModule.js:417:16)
at handleParseError (C:\Users\Asus\Desktop\Vue\vue-project\node_modules\webpack\lib\NormalModule.js:471:10)
at C:\Users\Asus\Desktop\Vue\vue-project\node_modules\webpack\lib\NormalModule.js:503:5
at C:\Users\Asus\Desktop\Vue\vue-project\node_modules\webpack\lib\NormalModule.js:358:12
at C:\Users\Asus\Desktop\Vue\vue-project\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (C:\Users\Asus\Desktop\Vue\vue-project\node_modules\loader-runner\lib\LoaderRunner.js:214:10) at iterateNormalLoaders (C:\Users\Asus\Desktop\Vue\vue-project\node_modules\loader-runner\lib\LoaderRunner.js:221:10) at C:\Users\Asus\Desktop\Vue\vue-project\node_modules\loader-runner\lib\LoaderRunner.js:236:3
at runSyncOrAsync (C:\Users\Asus\Desktop\Vue\vue-project\node_modules\loader-runner\lib\LoaderRunner.js:130:11)
at iterateNormalLoaders (C:\Users\Asus\Desktop\Vue\vue-project\node_modules\loader-runner\lib\LoaderRunner.js:232:2)
at Array. (C:\Users\Asus\Desktop\Vue\vue-project\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
at Storage.finished (C:\Users\Asus\Desktop\Vue\vue-project\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
at C:\Users\Asus\Desktop\Vue\vue-project\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
node:internal/crypto/hash:67
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:130:10)
at module.exports (C:\Users\Asus\Desktop\Vue\vue-project\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (C:\Users\Asus\Desktop\Vue\vue-project\node_modules\webpack\lib\NormalModule.js:417:16)
at handleParseError (C:\Users\Asus\Desktop\Vue\vue-project\node_modules\webpack\lib\NormalModule.js:471:10)
at C:\Users\Asus\Desktop\Vue\vue-project\node_modules\webpack\lib\NormalModule.js:503:5
at C:\Users\Asus\Desktop\Vue\vue-project\node_modules\webpack\lib\NormalModule.js:358:12
at C:\Users\Asus\Desktop\Vue\vue-project\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (C:\Users\Asus\Desktop\Vue\vue-project\node_modules\loader-runner\lib\LoaderRunner.js:214:10) at Array. (C:\Users\Asus\Desktop\Vue\vue-project\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
at Storage.finished (C:\Users\Asus\Desktop\Vue\vue-project\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
at C:\Users\Asus\Desktop\Vue\vue-project\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
at C:\Users\Asus\Desktop\Vue\vue-project\node_modules\graceful-fs\graceful-fs.js:123:16
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Need to install the following packages:
create-vite@latest
Ok to proceed? (y) y
√ Project name: ... vite-project
√ Select a framework: » vue
√ Select a variant: » vue
Scaffolding project in C:\Users\Asus\Desktop\Vue\vite-project...
Done. Now run:
cd vite-project
npm install
npm run dev
Asus@LAPTOP-TGVPUQLS MINGW64 ~/Desktop/Vue
$ cd my-project
bash: cd: my-project: No such file or directory
Asus@LAPTOP-TGVPUQLS MINGW64 ~/Desktop/Vue
$ npm install
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\Asus\Desktop\Vue/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Asus\Desktop\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\Asus\AppData\Local\npm-cache\_logs\2022-02-16T11_09_48_043Z-debug-0.log
Asus@LAPTOP-TGVPUQLS MINGW64 ~/Desktop/Vue
$ npm run dev
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\Asus\Desktop\Vue/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Asus\Desktop\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\Asus\AppData\Local\npm-cache\_logs\2022-02-16T11_10_03_816Z-debug-0.log