Вы находитесь на странице: 1из 5

indows PowerShell

(C) ��������� ���������� (Microsoft Corporation). ��� ����� ��������.

PS C:\git\laborator2> yarn start


yarn : �� "yarn" �� ���������� ��� �� ����������, �������, ����� ������� ���
����������
���������. ��������� ������������ �������� �����, � ����� ������� � ������������
����, �����
���� ��������� �������.
������:1 ����:1
+ yarn start
+ ~~~~
+ CategoryInfo : ObjectNotFound: (yarn:String) [],
CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\git\laborator2> yarn start


yarn : �� "yarn" �� ���������� ��� �� ����������, �������, ����� ������� ���
���������� ���������. ��������� ������������ �������� �����, � ����� ������� �
������������
����, ����� ���� ��������� �������.
������:1 ����:1
+ yarn start
+ ~~~~
+ CategoryInfo : ObjectNotFound: (yarn:String) [],
CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\git\laborator2> npm install --global yarn


��������� ���������� ��������� ����� [Y(��)/N(���)]? ^Cy
PS C:\git\laborator2>
PS C:\git\laborator2>
PS C:\git\laborator2> npm -v
8.5.3
PS C:\git\laborator2> yarn -v
yarn : ���������� ��������� ���� C:\Users\Admin\AppData\Roaming\npm\yarn.ps1, ���
��� ���������� ��������� �������� � ���� �������. �� �������� ��������������
�������� ��.
about_Execution_Policies �� ������ https:/go.microsoft.com/fwlink/?LinkID=135170.
������:1 ����:1
+ yarn -v
+ ~~~~
+ CategoryInfo : ������ ������������: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
PS C:\git\laborator2> npm install --global yarn

changed 1 package, and audited 2 packages in 10s

found 0 vulnerabilities
PS C:\git\laborator2> yarn -v
yarn : ���������� ��������� ���� C:\Users\Admin\AppData\Roaming\npm\yarn.ps1, ���
��� ���������� ��������� �������� � ���� �������. �� �������� ��������������
�������� ��.
about_Execution_Policies �� ������ https:/go.microsoft.com/fwlink/?LinkID=135170.
������:1 ����:1
+ yarn -v
+ ~~~~
+ CategoryInfo : ������ ������������: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
PS C:\git\laborator2> npm intall --global yarn
Unknown command: "intall"

Did you mean this?


npm install # Install a package

To see a list of supported npm commands, run:


npm help
PS C:\git\laborator2> npm install --global yarn

changed 1 package, and audited 2 packages in 1s

found 0 vulnerabilities
PS C:\git\laborator2> yarn -v
yarn : ���������� ��������� ���� C:\Users\Admin\AppData\Roaming\npm\yarn.ps1, ���
��� ���������� ��������� �������� � ���� �������. �� �������� ��������������
�������� ��.
about_Execution_Policies �� ������ https:/go.microsoft.com/fwlink/?LinkID=135170.
������:1 ����:1
+ yarn -v
+ ~~~~
+ CategoryInfo : ������ ������������: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
PS C:\git\laborator2> Set-ExecutionPolicy RemoteSigned
Set-ExecutionPolicy : �������� � ������� � ������� ������� "HKEY_LOCAL_MACHINE\
SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell". ����� ��������
�������� ���������
�� ������� (LocalMachine), ������������ �� ��������, ��������� Windows PowerShell �
���������� "������ �� ����� ��������������". ����� �������� �������� ��������� ��
�������� �����������, ��������� "Set-ExecutionPolicy -Scope CurrentUser".
������:1 ����:1
+ Set-ExecutionPolicy RemoteSigned
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Set-ExecutionPolicy],
UnauthorizedAccessException
+ FullyQualifiedErrorId :
System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.SetExecutionPolicy
Command
PS C:\git\laborator2> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope
CurrentUser
PS C:\git\laborator2> yarn -v
1.22.17
PS C:\git\laborator2> yarn start
yarn run v1.22.17
error Couldn't find a package.json file in "C:\\git\\laborator2"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this
command.
PS C:\git\laborator2> ls

Directory: C:\git\laborator2

Mode LastWriteTime Length Name


---- ------------- ------ ----
d----- 3/11/2022 8:00 PM .idea
d----- 3/11/2022 11:59 AM lab2
PS C:\git\laborator2> cd lab2
PS C:\git\laborator2\lab2> ls

Directory: C:\git\laborator2\lab2

Mode LastWriteTime Length Name


---- ------------- ------ ----
d----- 3/11/2022 12:11 PM node_modules
d----- 3/11/2022 11:59 AM public
d----- 3/11/2022 11:59 AM src
-a---- 2/16/2022 9:59 AM 310 .gitignore
-a---- 3/11/2022 12:11 PM 1102 package.json
-a---- 3/11/2022 11:59 AM 2113 README.md
-a---- 3/11/2022 11:59 AM 561 tsconfig.json
-a---- 3/11/2022 12:11 PM 438339 yarn.lock

PS C:\git\laborator2\lab2> yarn start


yarn run v1.22.17
$ react-scripts start
(node:468) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning:
'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares'
option.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:468) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning:
'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares'
option.
Starting the development server...
Compiled with warnings.

src\App.tsx
Line 2:8: 'logo' is defined but never used @typescript-eslint/no-unused-vars

Search for the keywords to learn more about each warning.


To ignore, add // eslint-disable-next-line to the line before.

assets by path static/js/*.js 1.48 MiB


asset static/js/bundle.js 1.47 MiB [emitted] (name: main) 1 related asset
asset static/js/node_modules_web-vitals_dist_web-vitals_js.chunk.js 6.91 KiB
[emitted] 1 related asset
asset index.html 1.67 KiB [emitted]
asset asset-manifest.json 458 bytes [emitted]
runtime modules 31.3 KiB 15 modules
modules by path ./node_modules/ 1.35 MiB 99 modules
modules by path ./src/ 14 KiB
modules by path ./src/*.css 8.82 KiB
./src/index.css 2.72 KiB [built] [code generated]
./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./
node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./
node_modules/source-map-loader/dist/cjs.js!./src/index.css 1.37 KiB [built] [code
generated]
./src/App.css 2.72 KiB [built] [code generated]
./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./
node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./
node_modules/source-map-loader/dist/cjs.js!./src/App.css 2 KiB [built] [code
generated]
modules by path ./src/*.tsx 3.86 KiB
./src/index.tsx 1.77 KiB [built] [code generated]
./src/App.tsx 2.09 KiB [built] [code generated]
./src/reportWebVitals.ts 1.38 KiB [built] [code generated]

WARNING in src\App.tsx
Line 2:8: 'logo' is defined but never used @typescript-eslint/no-unused-vars

webpack 5.70.0 compiled with 1 warning in 18604 ms


No issues found.
PS C:\git\laborator2\lab2> ^C
PS C:\git\laborator2\lab2> ^C
PS C:\git\laborator2\lab2> yarn start
yarn run v1.22.17
$ react-scripts start
(node:8332) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning:
'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares'
option.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:8332) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning:
'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares'
option.
Starting the development server...
Compiled with warnings.

src\App.tsx
Line 2:8: 'logo' is defined but never used @typescript-eslint/no-unused-vars

Search for the keywords to learn more about each warning.


To ignore, add // eslint-disable-next-line to the line before.

assets by path static/js/*.js 1.48 MiB


asset static/js/bundle.js 1.47 MiB [emitted] (name: main) 1 related asset
asset static/js/node_modules_web-vitals_dist_web-vitals_js.chunk.js 6.91 KiB
[emitted] 1 related asset
asset index.html 1.67 KiB [emitted]
asset asset-manifest.json 458 bytes [emitted]
runtime modules 31.3 KiB 15 modules
modules by path ./node_modules/ 1.35 MiB 99 modules
modules by path ./src/ 14 KiB
modules by path ./src/*.css 8.82 KiB
./src/index.css 2.72 KiB [built] [code generated]
./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./
node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./
node_modules/source-map-loader/dist/cjs.js!./src/index.css 1.37 KiB [built] [code
generated]
./src/App.css 2.72 KiB [built] [code generated]
./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./
node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./
node_modules/source-map-loader/dist/cjs.js!./src/App.css 2 KiB [built] [code
generated]
modules by path ./src/*.tsx 3.86 KiB
./src/index.tsx 1.77 KiB [built] [code generated]
./src/App.tsx 2.09 KiB [built] [code generated]
./src/reportWebVitals.ts 1.38 KiB [built] [code generated]

WARNING in src\App.tsx
Line 2:8: 'logo' is defined but never used @typescript-eslint/no-unused-vars

webpack 5.70.0 compiled with 1 warning in 11341 ms


No issues found.
Compiling...
Compiled with warnings.

src\App.tsx
Line 2:8: 'logo' is defined but never used @typescript-eslint/no-unused-vars

Search for the keywords to learn more about each warning.


To ignore, add // eslint-disable-next-line to the line before.

assets by status 6.91 KiB [cached] 1 asset


assets by chunk 1.47 MiB (name: main)
asset static/js/bundle.js 1.47 MiB [emitted] (name: main) 1 related asset
asset main.bdded94b810787bd90b0.hot-update.js 355 bytes [emitted] [immutable]
[hmr] (name: main) 1 related asset
assets by path *.json 611 bytes
asset asset-manifest.json 583 bytes [emitted]
asset main.bdded94b810787bd90b0.hot-update.json 28 bytes [emitted] [immutable]
[hmr]
asset index.html 1.67 KiB [emitted]
Entrypoint main 1.47 MiB (1.49 MiB) = static/js/bundle.js 1.47 MiB
main.bdded94b810787bd90b0.hot-update.js 355 bytes 2 auxiliary assets
cached modules 1.36 MiB [cached] 106 modules
runtime modules 31.3 KiB 15 modules

WARNING in src\App.tsx
Line 2:8: 'logo' is defined but never used @typescript-eslint/no-unused-vars

webpack 5.70.0 compiled with 1 warning in 368 ms


No issues found.
PS C:\git\laborator2\lab2>

Вам также может понравиться