je tente d'installer node_module dans mon projet angulaire ce que je téléchargé, mais je reçois cette erreur:NPM Erreur d'installation - cb() n'a jamais appelé
npm ERR! registry error parsing json
Puis je réinstalle en utilisant NPM npm intall npm -g
et après quand j'essayez d'utiliser npm install
Je reçois cette erreur:
(node:11252) UnhandledPromiseRejectionWarning: Unhandled promise
rejection (rejection id: 1): Error: ENOENT: no such file or directory, stat
'C:\Users\User\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-ec5da46c\angular\cdk.es5.js'
debug.log:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session ff5ce249dfe37f0e
5 silly install runPreinstallTopLevelLifecycles
6 silly preinstall [email protected]
7 info lifecycle [email protected]~preinstall: [email protected]
8 silly install loadCurrentTree
9 silly install readLocalPackageData
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 silly install loadShrinkwrap
13 info lifecycle @angular/[email protected]~prepack: @angular/[email protected]
14 error cb() never called!
15 error This is an error with npm itself. Please report this error at:
16 error <https://github.com/npm/npm/issues>
I déjà essayé npm cache clean --force
mais j'ai la même erreur.
node -v v6.10.2
npm -v 5.4.2
'package.json' existe, et ce projet a fonctionné il y a quelques semaines. Mais maintenant je clone git et reçois cette erreur. – Vertigo
Assurez-vous qu'il se trouve dans le répertoire racine du projet où vous exécutez 'npm install' –
Je cours dans le répertoire racine. Maintenant, j'ai essayé d'installer ce projet dans un autre ordinateur et 'node_modules' installé sans problème, donc je pense que problemm dans' npm'. As tu des idées? – Vertigo