Comments (4)
把我的npm命令给弄没了,其它的命令正常
from smart-npm.
是的,安装 smart-npm 后会替换原来的 npm,这说明你没安装成功,但你反馈的信息太少了,我无法确定你问题出在什么地方。
如果你想快速恢复你原来的 npm,你重新安装下 node 就好了。
如果你确实想使用 smart-npm,可以回答下这几个问题,我帮你定位原因:
- 你安装的是哪个版本的 smart-npm, 1.x.x 还是 2.x.x
- 安装过程中有没有报什么错误,把错误信息反馈下(估计也找不到了)
另外,说下原理,这样你自己也可以方便的恢复 npm:
安装 npm 后会在安装的文件下生成一个 npm.cmd 文件,而你安装 smart-npm 时,会先将你的 npm.cmd 重命名成 _npm-original.cmd 文件,然后生成一个新的 npm.cmd。
出现你说的那个问题是新的 npm.cmd 没有生成,但旧的 npm.cmd 被替换成了 _npm-original.cmd 文件,所以你只要找到 npm.cmd 的安装目录,将里面的 _npm-original.cmd 替换成 npm.cmd 即可
from smart-npm.
我使用npm install --global smart-npm --registry=https://registry.npm.taobao.org/
这条命令安装的,安装过程中是有出错(大致是说找不到命令),估计也是安装过程中npm给弄没了,所以后续的一些东西就报npm错误了。没有你说的_npm-original.cmd这个文件。后边我是手动下载npm包,然后替换到环境变量目录中,就可以用了。
from smart-npm.
那算了,其实我自己以前安装也出现过问题,当时主要是目录权限问题。
那我还是发个新版本,不再替换原来的 npm,安装后自己手动替换吧
from smart-npm.
Related Issues (20)
- OS X 安装失败 HOT 4
- npm
- macOS Sierra使用snpm安装hexo失败 HOT 6
- 是否考虑出一个smart-yarn? HOT 1
- 请问这个对 node.js 4.1.1 支持的怎么样 HOT 1
- windows下安装后出错 HOT 2
- 希望对 npm 命令路径的处理更智能些 HOT 3
- 读取缓存问题 HOT 1
- cnpm registry 是不是可以去掉了? HOT 2
- centos6.5安装失败 HOT 3
- 其实我觉得npm慢是npm程序本身的问题 HOT 8
- 关于更新了npm之后snpm -v的显示内容的问题 HOT 1
- 无法安装成功 HOT 5
- An in-range update of snyk is breaking the build 🚨 HOT 83
- 安装了smart-npm后,运行什么都出错了,该怎么卸载smart-npm HOT 1
- 升级 npm后 snpm -v 显示的npm版本是老的 HOT 3
- we must check into the path where npm locate HOT 1
- windows下 snpm install-npm报错
- Centos 7 安装失败 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smart-npm.