[英]Cannot find module eyes
I have installed vows using 'npm install vows' and made sure that i have 'eyes' but running 'npm install eyes' in the terminal. 我已经使用“ npm install vows”安装了誓言,并确保我有“ eyes”但在终端中运行了“ npm install eyes”。 I have checked that there a eyes folder in the node_modules folder in the local user.
我检查了本地用户的node_modules文件夹中是否有eye文件夹。 But when i run some test using 'vows' keyword, i get this error for the eyes module.
但是,当我使用'vows'关键字运行某些测试时,eyes模块出现此错误。 I have tried uninstalling and reinstalling vows and eyes multiple times, but it didn't work.
我曾尝试多次卸载和重新安装誓言和眼睛,但是没有用。 Can anyone help me fix this.
谁能帮我解决这个问题。
module.js:340 throw err; module.js:340 throw err;
Error: Cannot find module 'eyes' 错误:找不到模块“眼睛”
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/usr/bin/vows:32:15)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:487:10)
I think it is the location problem. 我认为这是位置问题。 you installed from a different source of your npm, node.js other than the default one.
您是从npm的其他来源node.js而非默认来源安装的。
You may run: 您可以运行:
whereis eyes
where is npm
in your terminal to check your install location. 在终端中检查您的安装位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.