Skip to content

Rand01ph/besike-nodejs-hello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create An NPM Package

标签(空格分隔): npm Node.js


第一次使用Node.js,没有使用Node.js版本管理工具。

在Coding过程中遇到的最大问题就是: Instead of loading the module by path, we want to be able to load the module by name。 解决办法: 终端中运行npm link命令得到链接路径,执行

export NODE_PATH=/usr/local/lib/node_modules

添加环境变量解决问题,期间还因为终端的自动补全导致安装了一个greet包,通过查看package.json发觉并卸载解决。 其他地方还比较顺利。 本身对Javascript和Node.js不太熟悉,需要恶补语言基础。

github仓库地址: https://github.com/Rand01ph/besike-nodejs-hello

About

第一个npm包

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published