萌新node全程学习记录贴
node吧
全部回复
仅看楼主
level 2
2017年10月31日 01点10分 1
level 2
window的node版本控制nvm的安装就找了好久:
https://github.com/coreybutler/nvm-windows/releases
参考链接:https://segmentfault.com/a/1190000007612011
2017年10月31日 02点10分 2
注意:如果之前安装过node.js的。一定要在set node.js symlink配置之前的node目录,不然之前的node会失效不能使用
2017年10月31日 02点10分
level 2
配置淘宝镜像
2017年10月31日 02点10分 3
level 2
nvm遇坑。命名设置了nvm use8.8.1 但是node依然是以前的版本
2017年10月31日 03点10分 4
level 2
问题解决:首先删除之前安装的node(包括v8.8.1 v6.10.2)。然后重新创建目录D:/nodeJs(与安装nvm时 设置symlink的目录一致),在这个目录下会保存node的快捷方式,根据nvm use ****来更改node的启动文件。
2017年10月31日 03点10分 5
level 2
由于我电脑上有项目使用的node 6.10.2,所以切换回此版本
2017年10月31日 03点10分 6
level 2
在学习过程中 发现npm的本地安装与全局安装 好一阵让我迷茫,最后在下面文章中找到答案。有兴趣的同学可以去看看。
http://www.cnblogs.com/PeunZhang/p/5629329.html
2017年10月31日 05点10分 7
level 2
npm设置淘宝镜像
2017年10月31日 06点10分 8
level 2
2017年10月31日 06点10分 9
level 2
npm init
2017年10月31日 07点10分 10
level 2
2017年10月31日 07点10分 11
level 2
2017年10月31日 07点10分 12
level 2
传说中的5行代码服务器
2017年10月31日 07点10分 13
level 2
我们也可以使用npm test启动。
原因:在npm test的时候,会package.json中的如下图代码。
2017年10月31日 07点10分 14
level 2
node进程
2017年10月31日 07点10分 15
1 2 尾页