2017-05-08 139 views
0

我得到这个错误,而安装Angular2NPM安装误差角2

npm ERR! Windows_NT 10.0.14393 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "angular-cli" 
npm ERR! node v7.4.0 
npm ERR! npm v4.0.5 

npm ERR! Cannot read property 'path' of null 
npm ERR! 
npm ERR! If you need help, you may report this error at: 
npm ERR!  <https://github.com/npm/npm/issues> 

npm ERR! Please include the following file with any support request: 
npm ERR!  C:\angular2-demo\npm-debug.log 

如何解决这个

+0

确实有安装在系统 –

+0

最新的节点@RahulSingh它看起来像'NPM v4.0.5'和'节点v7.4.0' –

+0

但角度工作,我想你需要上面的版本6或7 –

回答

0

有一些标准的说明和规则在这样的情况下遵循:

1-检查你的系统是否安装了npm和节点&是否是最新版本(最有可能)。

安装如果的NodeJS不可用:

下载Windows安装程序从Nodes.js® web site.

运行安装程序

(您在上一步中下载的.msi文件。)

按照安装程序中的提示进行操作(接受许可协议,单击NEXT按钮多次并接受默认安装设置)。 安装程序

重新启动您的计算机。在重新启动计算机之前,您将无法运行Node.js®。

重新启动计算机。在重新启动计算机之前,您将无法运行Node.js®。

现在检查node -v

为进一步建立和checup here