npm WARN deprecated socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6

简介: npm WARN deprecated socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6

cnpm安装的时候出现的一个问题。


使用npm install cnpm -g --registry=https://registry.npm.taobao.org命令的时候就会出现下图中的WARN。


20180516173755774.png


接下来就该耐心的看一看这个WARN,大概在说版本问题吧?图片上的倒数第二行可能就是给你推荐的版本。


换个命令试一试,这次使用npm install npm@5.3.0   @后是你对应的npm版本号 ,可以通过npm -v 查看


使用cnpm -v 命令查看一下是否安装成功,如下图:


20180516175425908.png

相关文章
|
6月前
项目打包报错“caniuse-lite is outdated. Please run next command `npm update`”的解决方案
项目打包报错“caniuse-lite is outdated. Please run next command `npm update`”的解决方案
268 1
npm WARN deprecated core-js@2.6.12 core-js@<3.3 is no longer maintained and not recommended for usa
npm WARN deprecated core-js@2.6.12 core-js@<3.3 is no longer maintained and not recommended for usa
444 0
|
3月前
|
JavaScript
【Deepin 20系统】Jupyter notebook解决ValueError: Please install Node.js and npm before continuing installa
文章讨论了在Deepin 20系统上安装Jupyter Notebook的debug插件时出现的"ValueError: Please install Node.js and npm before continuing installation"错误,并提供了使用conda安装Node.js的解决方法。
122 1
|
3月前
NPM——Electron failed to install correctly, please delete node_modules/electron and try
NPM——Electron failed to install correctly, please delete node_modules/electron and try
265 0
|
6月前
|
JavaScript
报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
113 2
|
11月前
Error:npm WARN enoent ENOENT: no such file or directory, open ‘C:\Users\XX\package.json‘son‘
Error:npm WARN enoent ENOENT: no such file or directory, open ‘C:\Users\XX\package.json‘son‘
|
JavaScript 前端开发 测试技术
npm run dev启动报错:TypeError: Cannot read property 'upgrade' of undefined
npm run dev启动报错:TypeError: Cannot read property 'upgrade' of undefined
228 0
|
JSON 数据格式
NPM Error Unexpected token < in JSON at position 0 while parsing near ‘<!DOCTYP
NPM Error Unexpected token < in JSON at position 0 while parsing near ‘<!DOCTYP
406 0
如何解决安装hexo init blog 时,出现WARN Failed to install dependencies. Please run ‘npm install‘ in “E:\tests
如何解决安装hexo init blog 时,出现WARN Failed to install dependencies. Please run ‘npm install‘ in “E:\tests
如何解决安装hexo init blog 时,出现WARN Failed to install dependencies. Please run ‘npm install‘ in “E:\tests
npm WARN lifecycle yarn@1.22.19~preinstall: cannot run in wd %s %s
npm WARN lifecycle yarn@1.22.19~preinstall: cannot run in wd %s %s
882 0