错误:无法在node.js中find模块
首先,这不是重复的。 我search了许多问题,但没有find答案,专门安装pagedown。 这是我的第一个模块。 我以pipe理员身份运行Node.js命令提示符,并运行此命令。
> var pagedown = require("pagedown");
这里是错误日志:
Error: Cannot find module 'pagedown' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at repl:1:16 at REPLServer.self.eval (repl.js:110:21) at repl.js:249:20 at REPLServer.self.eval (repl.js:122:7) at Interface.<anonymous> (repl.js:239:12) at Interface.emit (events.js:95:17)
我正在使用Windows。 工作目录:AppData \ Roaming \ npm \ < – 空文件夹
确定安装了npm
转到命令行(Windows_button + R),写入“cmd”,按Enter键通过命令行转到your_app_folder只需写入“ npm install pagedown ”,然后按Enter