Изменения документа Диспетчер пакетов NPM
Редактировал(а) Alexandr Fokin 2023/08/23 11:32
<
отредактировано Alexandr Fokin
на 2023/08/05 15:54
на 2023/08/05 15:54
отредактировано Alexandr Fokin
на 2023/08/23 11:32
на 2023/08/23 11:32
Изменить комментарий:
К данной версии нет комментариев
Комментарий
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -1,17 +1,25 @@ 1 1 |(% style="width:96px" %) |(% style="width:1417px" %)((( 2 -( % id="cke_bm_446S" style="display:none" %)(%%)Установить отсутствующие пакеты3 - {{code language="cmd"}}npminstall{{/code}}2 +((( 3 +(% id="cke_bm_446S" style="display:none" %) 4 4 5 -Переустановить пакеты 6 -{{code language="cmd"}}npm install --force 5 +|(% colspan="1" rowspan="3" style="width:263px" %)Установить отсутствующие пакеты|(% style="width:1109px" %)(% aria-label="макрос:code виджет" contenteditable="false" role="region" tabindex="-1" data-macro="startmacro:code|-|language=~"cmd~"|-|npm install" data-widget="xwiki-macro" class="macro box code" %)npm install 6 +|(% style="width:1109px" %)(% aria-label="макрос:code виджет" contenteditable="false" role="region" tabindex="-1" data-macro="startmacro:code|-|language=~"cmd~"|-|npm ci" data-widget="xwiki-macro" class="macro box code" %)npm ci 7 +|(% style="width:1109px" %)What is the difference between "npm install" and "npm ci"? 8 +[[https:~~/~~/stackoverflow.com/questions/52499617/what-is-the-difference-between-npm-install-and-npm-ci>>https://stackoverflow.com/questions/52499617/what-is-the-difference-between-npm-install-and-npm-ci]] 9 +|(% style="width:263px" %)Переустановить пакеты|(% style="width:1109px" %)(% aria-label="макрос:code виджет" contenteditable="false" role="region" tabindex="-1" data-macro="startmacro:code|-|language=~"cmd~"|-|npm install -\-force" data-widget="xwiki-macro" class="macro box code" %)npm install ~-~-force 10 +|(% style="width:263px" %) |(% style="width:1109px" %)(% aria-label="макрос:code виджет" contenteditable="false" role="region" tabindex="-1" data-macro="startmacro:code|-|language=~"cmd~"|-|npm uninstall -g <module>" data-widget="xwiki-macro" class="macro box code" %)npm uninstall -g <module> 11 +))) 7 7 8 -npm uninstall -g <module>{{/code}} 13 +((( 14 + 9 9 ))) 16 +))) 10 10 |(% style="width:96px" %)Ошибка|(% style="width:1417px" %)((( 11 -|(% style="width:380px" %)((( 12 -Следующая ошибка при выполнении команды 13 -например при {{code language="cmd"}}npx.cmd create-react-app@latest{{/code}}) 14 -)))|(% style="width:999px" %){{code language="cmd"}}npm ERR! code ENOENT 18 +|(% style="width:410px" %)((( 19 +Следующая ошибка при выполнении команды. 20 +Например при вызове 21 +{{code language="cmd"}}npx.cmd create-react-app@latest{{/code}} 22 +)))|(% style="width:969px" %){{code language="cmd"}}npm ERR! code ENOENT 15 15 npm ERR! syscall lstat 16 16 npm ERR! path C:\Users\<username>\AppData\Roaming\npm 17 17 npm ERR! errno -4058 ... ... @@ -18,8 +18,8 @@ 18 18 npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\<username>\AppData\Roaming\npm' 19 19 npm ERR! enoent This is related to npm not being able to find a file. 20 20 npm ERR! enoent{{/code}}| 21 -|(% style="width: 380px" %)Выполнить команду22 -( втом числе после установки nodejs через установщик).|(% style="width:999px" %)(((29 +|(% style="width:410px" %)Выполнить команду. 30 +(В том числе после установки nodejs через установщик).|(% style="width:969px" %)((( 23 23 Downloading and installing Node.js and npm 24 24 [[https:~~/~~/docs.npmjs.com/downloading-and-installing-node-js-and-npm>>https://docs.npmjs.com/downloading-and-installing-node-js-and-npm]] 25 25 ... ... @@ -27,9 +27,7 @@ 27 27 npm install -g npm 28 28 {{/code}} 29 29 )))| 30 -|(% style="width:380px" %) |(% style="width:999px" %) | 31 - 32 - 38 +|(% style="width:410px" %) |(% style="width:969px" %) | 33 33 ))) 34 34 |(% style="width:96px" %) |(% style="width:1417px" %) 35 35