#1 Le 13/07/2022, à 03:20
- Samx2
clone de projet web via git et npm
Bonjour
Je suis en train de compléter mon clonage de dossier web basé sur Symfony
À partir du dossier receveur, je tape la cmd
samx@samx-HP:~/lampstack-8.1.7-1/apache2/htdocs/accademia$ npm install
Et la réponse est
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/samx/lampstack-8.1.7-1/apache2/htdocs/accademia/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/samx/lampstack-8.1.7-1/apache2/htdocs/accademia/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! /home/samx/.npm/_logs/2022-07-13T02_10_19_711Z-debug-0.log
C'est vrai que je n'ai pas de fichier package.json mais j'ai un fichier package-lock.json
Que dois-je faire ? Renommer le fichier package-lock.json sans le lock ???
Dernière modification par Samx2 (Le 13/07/2022, à 15:10)
Samx, le deuxième du nom, vous salue.
Hors ligne
#2 Le 13/07/2022, à 17:41
- Samx2
Re : clone de projet web via git et npm
Je d/pose le log si ]ca peut aider ..
0 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install' ]
1 info using npm@8.5.1
2 info using node@v12.22.9
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:/usr/share/nodejs/npm/npmrc Completed in 5ms
6 timing config:load:builtin Completed in 6ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:/home/samx/lampstack-8.1.7-1/apache2/htdocs/accademia/.npmrc Completed in 0ms
10 timing config:load:project Completed in 2ms
11 timing config:load:file:/home/samx/.npmrc Completed in 1ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 2ms
18 timing config:load Completed in 17ms
19 timing npm:load:configload Completed in 18ms
20 timing npm:load:setTitle Completed in 1ms
21 timing config:load:flatten Completed in 5ms
22 timing npm:load:display Completed in 8ms
23 verbose logfile /home/samx/.npm/_logs/2022-07-13T16_38_37_981Z-debug-0.log
24 timing npm:load:logFile Completed in 8ms
25 timing npm:load:timers Completed in 0ms
26 timing npm:load:configScope Completed in 0ms
27 timing npm:load Completed in 37ms
28 timing arborist:ctor Completed in 4ms
29 timing idealTree:init Completed in 16ms
30 timing idealTree:userRequests Completed in 1ms
31 silly idealTree buildDeps
32 timing idealTree:#root Completed in 0ms
33 timing idealTree:buildDeps Completed in 2ms
34 timing idealTree:fixDepFlags Completed in 0ms
35 timing idealTree Completed in 21ms
36 timing reify:loadTrees Completed in 30ms
37 timing reify:diffTrees Completed in 2ms
38 silly reify moves {}
39 timing reify:retireShallow Completed in 0ms
40 timing reify:createSparse Completed in 0ms
41 timing reify:loadBundles Completed in 0ms
42 silly audit report null
43 timing reify:audit Completed in 1ms
44 timing reify:unpack Completed in 1ms
45 timing reify:unretire Completed in 0ms
46 timing build:queue Completed in 0ms
47 timing build:deps Completed in 0ms
48 timing build Completed in 0ms
49 timing reify:build Completed in 2ms
50 timing reify:trash Completed in 0ms
51 timing reify:save Completed in 2ms
52 timing reify Completed in 99ms
53 timing command:install Completed in 109ms
54 verbose stack Error: ENOENT: no such file or directory, open '/home/samx/lampstack-8.1.7-1/apache2/htdocs/accademia/package.json'
55 verbose cwd /home/samx/lampstack-8.1.7-1/apache2/htdocs/accademia
56 verbose Linux 5.15.0-41-generic
57 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
58 verbose node v12.22.9
59 verbose npm v8.5.1
60 error code ENOENT
61 error syscall open
62 error path /home/samx/lampstack-8.1.7-1/apache2/htdocs/accademia/package.json
63 error errno -2
64 error enoent ENOENT: no such file or directory, open '/home/samx/lampstack-8.1.7-1/apache2/htdocs/accademia/package.json'
65 error enoent This is related to npm not being able to find a file.
65 error enoent
66 verbose exit -2
67 timing npm Completed in 503ms
68 verbose code -2
69 error A complete log of this run can be found in:
69 error /home/samx/.npm/_logs/2022-07-13T16_38_37_981Z-debug-0.log
Samx, le deuxième du nom, vous salue.
Hors ligne