Node.js-需要空路径 [英] Node.js - require empty path
本文介绍了Node.js-需要空路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在github上遇到了此文件,这个:
I came across this file on github, which does this:
var migrate = require('../')
那是什么意思?当我尝试相同时,得到:Error: Cannot find module '../'
What does that mean? When I tried the same, I get: Error: Cannot find module '../'
推荐答案
It requires the file index.js
of the parent folder, which is this one: https://github.com/visionmedia/node-migrate/blob/master/index.js
这篇关于Node.js-需要空路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文