Project

General

Profile

Actions

Anomalie #3811

closed

pad.april.org : absence du fichier package.json (bloquant pour l'audit npm)

Added by Christian P. Momon over 5 years ago. Updated about 4 years ago.

Status:
Fermé
Priority:
Normale
Category:
-
Target version:
Start date:
07/14/2019
Due date:
% Done:

0%

Estimated time:
Difficulté:
2 Facile

Description

Actuellement, sur la vm pad :

(April) root@pad:/srv/etherpad-lite[live-1.7.0$%]# /srv/etherpad-lite/src/node_modules/.bin/npm audit
npm ERR! code EAUDITNOPJSON
npm ERR! audit No package.json found: Cannot audit a project without a package.json

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-07-14T10_23_31_083Z-debug.log
(April) root@pad:/srv/etherpad-lite[live-1.7.0$%]# cat /root/.npm/_logs/2019-07-14T10_23_31_083Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli   '/srv/etherpad-lite/src/node_modules/.bin/npm',
1 verbose cli   'audit' ]
2 info using npm@6.4.0
3 info using node@v6.13.0
4 verbose npm-session e9d51f55f568da7c
5 verbose stack Error: No package.json found: Cannot audit a project without a package.json
5 verbose stack     at Bluebird.all.spread (/srv/etherpad-lite/src/node_modules/npm/lib/audit.js:143:19)
5 verbose stack     at tryCatcher (/srv/etherpad-lite/src/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
5 verbose stack     at Promise._settlePromiseFromHandler (/srv/etherpad-lite/src/node_modules/npm/node_modules/bluebird/js/release/promise.js:509:35)
5 verbose stack     at Promise._settlePromise (/srv/etherpad-lite/src/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
5 verbose stack     at Promise._settlePromise0 (/srv/etherpad-lite/src/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
5 verbose stack     at Promise._settlePromises (/srv/etherpad-lite/src/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
5 verbose stack     at Promise._fulfill (/srv/etherpad-lite/src/node_modules/npm/node_modules/bluebird/js/release/promise.js:638:18)
5 verbose stack     at PromiseArray._resolve (/srv/etherpad-lite/src/node_modules/npm/node_modules/bluebird/js/release/promise_array.js:126:19)
5 verbose stack     at PromiseArray._promiseFulfilled (/srv/etherpad-lite/src/node_modules/npm/node_modules/bluebird/js/release/promise_array.js:144:14)
5 verbose stack     at PromiseArray._iterate (/srv/etherpad-lite/src/node_modules/npm/node_modules/bluebird/js/release/promise_array.js:114:31)
5 verbose stack     at PromiseArray.init [as _init] (/srv/etherpad-lite/src/node_modules/npm/node_modules/bluebird/js/release/promise_array.js:78:10)
5 verbose stack     at Promise._settlePromise (/srv/etherpad-lite/src/node_modules/npm/node_modules/bluebird/js/release/promise.js:566:21)
5 verbose stack     at Promise._settlePromise0 (/srv/etherpad-lite/src/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
5 verbose stack     at Promise._settlePromises (/srv/etherpad-lite/src/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
5 verbose stack     at Promise._fulfill (/srv/etherpad-lite/src/node_modules/npm/node_modules/bluebird/js/release/promise.js:638:18)
5 verbose stack     at PromiseArray._resolve (/srv/etherpad-lite/src/node_modules/npm/node_modules/bluebird/js/release/promise_array.js:126:19)
6 verbose cwd /srv/etherpad-lite
7 verbose Linux 4.9.0-9-amd64
8 verbose argv "/usr/bin/node" "/srv/etherpad-lite/src/node_modules/.bin/npm" "audit" 
9 verbose node v6.13.0
10 verbose npm  v6.4.0
11 error code EAUDITNOPJSON
12 error audit No package.json found: Cannot audit a project without a package.json
13 verbose exit [ 1, true ]
(April) root@pad:/srv/etherpad-lite[live-1.7.0$%]#

Demande :
  • vérifier si l'absence du fichier package.json est-elle normale ?
  • faire apparaître un fichier package.json ;
  • relancer un audit npm.
Actions #1

Updated by Quentin Gibeaux over 4 years ago

  • Status changed from Nouveau to Résolu

faut l'exécuter depuis le dossier src

Actions #2

Updated by Quentin Gibeaux about 4 years ago

  • Status changed from Résolu to Fermé
  • Assignee set to Quentin Gibeaux
Actions

Also available in: Atom PDF