在cmd上写“ npm install”命令时显示错误

时间:2019-06-12 07:59:16

标签: laravel

在cmd上写npm install命令时显示错误

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Pradeep.ITV>cd blog

C:\Users\Pradeep.ITV\blog>php artisan make:auth
Authentication scaffolding generated successfully.

C:\Users\Pradeep.ITV\blog>npm install
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\NODEJS\npm-cache\_logs\2019-06-12T07_25_03_933Z-debug.log

C:\Users\Pradeep.ITV\blog>

1 个答案:

答案 0 :(得分:0)

此错误通常在您的节点和npm版本较旧时出现。尝试将其至少升级到节点7.3.0和npm 4.1。然后再次尝试center { add(yourMainView.root) }