Исходный код вики Диспетчер пакетов NPM
Редактировал(а) Alexandr Fokin 2023/08/23 11:32
Последние авторы
author | version | line-number | content |
---|---|---|---|
1 | |(% style="width:96px" %) |(% style="width:1417px" %)((( | ||
2 | ((( | ||
3 | (% id="cke_bm_446S" style="display:none" %) | ||
4 | |||
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 | ))) | ||
12 | |||
13 | ((( | ||
14 | |||
15 | ))) | ||
16 | ))) | ||
17 | |(% style="width:96px" %)Ошибка|(% style="width:1417px" %)((( | ||
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 | ||
23 | npm ERR! syscall lstat | ||
24 | npm ERR! path C:\Users\<username>\AppData\Roaming\npm | ||
25 | npm ERR! errno -4058 | ||
26 | npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\<username>\AppData\Roaming\npm' | ||
27 | npm ERR! enoent This is related to npm not being able to find a file. | ||
28 | npm ERR! enoent{{/code}}| | ||
29 | |(% style="width:410px" %)Выполнить команду. | ||
30 | (В том числе после установки nodejs через установщик).|(% style="width:969px" %)((( | ||
31 | Downloading and installing Node.js and npm | ||
32 | [[https:~~/~~/docs.npmjs.com/downloading-and-installing-node-js-and-npm>>https://docs.npmjs.com/downloading-and-installing-node-js-and-npm]] | ||
33 | |||
34 | {{code language="cmd"}} | ||
35 | npm install -g npm | ||
36 | {{/code}} | ||
37 | )))| | ||
38 | |(% style="width:410px" %) |(% style="width:969px" %) | | ||
39 | ))) | ||
40 | |(% style="width:96px" %) |(% style="width:1417px" %) | ||
41 | |||
42 | ---- | ||
43 | |||
44 | ==== Внутренние ссылки: ==== | ||
45 | |||
46 | ====== Дочерние страницы: ====== | ||
47 | |||
48 | {{children/}} | ||
49 | |||
50 | ====== Обратные ссылки: ====== | ||
51 | |||
52 | {{velocity}} | ||
53 | #set ($links = $doc.getBacklinks()) | ||
54 | #if ($links.size() > 0) | ||
55 | #foreach ($docname in $links) | ||
56 | #set ($rdoc = $xwiki.getDocument($docname).getTranslatedDocument()) | ||
57 | * [[$escapetool.xml($rdoc.fullName)]] | ||
58 | #end | ||
59 | #else | ||
60 | No back links for this page! | ||
61 | #end | ||
62 | {{/velocity}} | ||
63 | |||
64 | ---- |