簡體   English   中英

npm WARN棄用了npmconf@2.1.2:這個軟件包已經重新集成到npm中,現在已經過時了npm

[英]npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm

我在CentOS 7服務器上安裝node.js,當我嘗試安裝yeoman時出現以下錯誤:

npm WARN deprecated npmconf@2.1.2: this package has been  
reintegrated into npm and is now out of date with respect to npm

安裝的自耕農似乎無法正常工作。 我能做些什么來避免這種警告嗎? 讓它處理不當會有什么影響?

以下是yeoman安裝的終端輸出的第一部分的其余部分:

[root@localhost ~]# npm install -g yo
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
/usr/bin/yo -> /usr/lib/node_modules/yo/lib/cli.js

> yo@1.6.0 postinstall /usr/lib/node_modules/yo
> yodoctor
Yeoman Doctor
Running sanity checks on your system
✔ Global configuration file is valid
✔ NODE_PATH matches the npm root
✔ Node.js version
✔ No .bowerrc file in home directory
✔ No .yo-rc.json file in home directory
✔ npm version
Everything looks all right!
/usr/lib
.... many lines of directory structure follow

問題是與“最新穩定”版本的節點捆綁在一起的npm版本沒有正確安裝我們的一些npm軟件包。 要解決此問題,請打開命令提示符並運行:

npm -g install npm

將npm更新為最新版本。 這應該可以解決問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM