草庐IT

adjacent_find

全部标签

javascript - Uncaught Error : Cannot find module 'jquery'

我正在使用Electron制作桌面应用程序。在我的应用程序中,我正在加载一个外部站点(在Atom应用程序之外),可以说http://mydummysite/index.html页面。这是我在AtomEditor中的应用程序的结构:即它具有以下部分:main.jspackage.jsonnodemodules>jquery(加载jquery)源代码:main.js:'usestrict';varapp=require('app');app.on('ready',function(){varBrowserWindow=require('browser-window');varwin=new

node.js - npm install 给出错误 "can' t find a package.json file"

npminstall/npminstall-g命令在Windows7中不起作用Node.js安装正确,node.js版本为v0.10.28Couldn'treaddependenciesENOENT,open'"filepath"\package.json'Thisismostlikelynotaproblemwithnpmitself.npmcan'tfindapackage.jsonfileinyourcurrentdirectory. 最佳答案 你没有说你想安装什么模块-因此npm寻找一个描述你的依赖关系的文件package.

node.js - npm install 给出错误 "can' t find a package.json file"

npminstall/npminstall-g命令在Windows7中不起作用Node.js安装正确,node.js版本为v0.10.28Couldn'treaddependenciesENOENT,open'"filepath"\package.json'Thisismostlikelynotaproblemwithnpmitself.npmcan'tfindapackage.jsonfileinyourcurrentdirectory. 最佳答案 你没有说你想安装什么模块-因此npm寻找一个描述你的依赖关系的文件package.

node.js - 错误 : Cannot find module 'ejs'

这是我的完整错误:Error:Cannotfindmodule'ejs'atFunction._resolveFilename(module.js:317:11)atFunction._load(module.js:262:25)atrequire(module.js:346:19)atView.templateEngine(/Users/shamoon/local/node/lib/node_modules/express/lib/view/view.js:133:38)atFunction.compile(/Users/shamoon/local/node/lib/node_mod

node.js - 错误 : Cannot find module 'ejs'

这是我的完整错误:Error:Cannotfindmodule'ejs'atFunction._resolveFilename(module.js:317:11)atFunction._load(module.js:262:25)atrequire(module.js:346:19)atView.templateEngine(/Users/shamoon/local/node/lib/node_modules/express/lib/view/view.js:133:38)atFunction.compile(/Users/shamoon/local/node/lib/node_mod

node.js - "Fatal error: Unable to find local grunt."运行 "grunt"命令时

我使用以下命令卸载了grunt。npmuninstall-ggrunt然后我再次使用以下命令安装了grunt。npminstall-ggrunt-cli访问以下链接:https://npmjs.org/package/grunt-html我想用上面的grunt插件但是当我运行grunt命令时,它给了我以下错误:D:\nodeJS\node_modules\grunt-html>gruntgrunt-cli:Thegruntcommandlineinterface.(v0.1.6)Fatalerror:Unabletofindlocalgrunt.Ifyou'reseeingthisme

node.js - "Fatal error: Unable to find local grunt."运行 "grunt"命令时

我使用以下命令卸载了grunt。npmuninstall-ggrunt然后我再次使用以下命令安装了grunt。npminstall-ggrunt-cli访问以下链接:https://npmjs.org/package/grunt-html我想用上面的grunt插件但是当我运行grunt命令时,它给了我以下错误:D:\nodeJS\node_modules\grunt-html>gruntgrunt-cli:Thegruntcommandlineinterface.(v0.1.6)Fatalerror:Unabletofindlocalgrunt.Ifyou'reseeingthisme

node.js - TypeScript 出现错误 TS2304 : cannot find name ' require'

我正在尝试启动并运行我的第一个TypeScript和DefinedlyTypedNode.js应用程序,但遇到了一些错误。当我尝试转译简单的TypeScriptNode.js页面时,我收到错误“TS2304:找不到名称'require'”。我已经阅读了StackOverflow上出现的其他几次此错误,但我认为我没有类似的问题。我在shell提示符下运行命令:tscmovie.server.model.ts.这个文件的内容是:'usestrict';////*movie.server.model.ts-definitionofmovieschema*/varmongoose=requir

node.js - TypeScript 出现错误 TS2304 : cannot find name ' require'

我正在尝试启动并运行我的第一个TypeScript和DefinedlyTypedNode.js应用程序,但遇到了一些错误。当我尝试转译简单的TypeScriptNode.js页面时,我收到错误“TS2304:找不到名称'require'”。我已经阅读了StackOverflow上出现的其他几次此错误,但我认为我没有类似的问题。我在shell提示符下运行命令:tscmovie.server.model.ts.这个文件的内容是:'usestrict';////*movie.server.model.ts-definitionofmovieschema*/varmongoose=requir

node.js - 如何使用 Node.js 解决 "Cannot find module"错误?

从GitHub拉下一个模块并按照说明构建它后,我尝试使用以下方法将其拉入现有项目:>npminstall../faye这似乎可以解决问题:>npmlist/home/dave/src/server└─┬faye@0.7.1├──cookiejar@1.3.0├──hiredis@0.1.13└──redis@0.7.1但是Node.js找不到模块:>nodeapp.jsnode.js:201throwe;//process.nextTickerror,or'error'eventonfirsttick^Error:Cannotfindmodule'faye'atFunction._re