草庐IT

find_one

全部标签

javascript - Babel编译错误: Cannot find module core-js/library/fn/get-iterator

这是我的目录结构:├───demo│├───entry││├───index.js││├───tap.js││└───util.js│├───node_modules│├───index.html│├───package.json│└───webpack.config.js├───src│├───tap.js│└───util.js├───index.js└───package.json在demo/entry/index.js我有importtapfrom'../../src/tap';编译时,babel报错ERRORin../src/tap.jsModulebuildfailed:E

node.js - 如何在 windows node.js 上运行 Mocha 测试(错误 : Cannot find module 'C:\cygdrive\c\Users )

我正在尝试在Windows中运行一个应用程序,这个应用程序有一些mocha测试。我需要制作。我读了这个Mocharequiresmake.Can'tfindamake.exethatworksonWindows还有这个Node.jscannotfindmodule-interferingwithcygwinonWindows我在Github目录(在cygwin目录结构之外)中有应用程序,并且我安装了windows版本的Node。我尝试使用powershell并按照建议设置别名,但我总是得到>module.js:340>throwerr;>^Error:Cannotfindmodule'

node.js - Google App Engine - Node : Cannot find module 'firebase-admin'

第一次在这里部署GAE应用程序,我正在尝试遵循本教程:https://firebase.googleblog.com/2016/08/sending-notifications-between-android.html(参见Node代码部分)。我跑了npminstallfirebase-admin--savenpminstallrequest--save在我的机器上,package.json在这里,但是当我使用gcloudappdeploy时,在浏览器上打开应用程序时会得到这些日志:2017-02-1009:35:02default[20170210t103151]module.js:

javascript - Node : Error: Cannot find module 'html'

我正在使用nodejs并且我试图只提供html文件(没有Jade、ejs...引擎)。这是我的入口点(index.js)代码:varexpress=require('express');varbodyParser=require('body-parser');varapp=express();app.set('port',(process.env.PORT||5000));app.use(express.static(__dirname+'/public'));app.use(bodyParser.urlencoded({extended:true}));app.use(bodyPar

node.js - npm: "Cannot find module internal/errors"

在装有最新版本NodeJS的MacBook上,我正在尝试更新npm:npminstallnpm@latest错误信息是:npmERR:codeMODULE_NOT_FOUNDnpmERR:Cannotfindmodule'internal/errors'npmERR:Acompletelogofthisruncanbefoundin:npmERR:/Users/alexander/.npm/_logs/2017_09_15_12_35_47_079Z-debug.log并且引用的日志文件读取0infoitworkedifitendswithok1verbosecli['/usr/loc

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

这个简单的应用程序在我刚刚安装到文件目录后似乎找不到'connect'模块。varconnect=require('connect');connect.createServer(function(res,req,next){res.simpleBody("Connectyousonofabeeeeetch");}).listen(8000);express@3.1.0node_modules/express├──methods@0.0.1├──fresh@0.1.0├──range-parser@0.0.4├──cookie-signature@0.0.1├──buffer-crc32

node.js - NPM : Cannot find module 'node-gyp/bin/node-gyp'

我在ubuntu14.04和node8.0.0下使用NPM。我已将我的npm从5.2.0升级到5.6.0但是在那之后所有的npm命令都失败了,说明有问题:node-gyp/bin/node-gyp完整的日志如下:npmERR!codeMODULE_NOT_FOUNDnpmERR!Cannotfindmodule'node-gyp/bin/node-gyp'npmERR!Acompletelogofthisruncanbefoundin:npmERR!/home/khalidvm/.npm/_logs/2018-01-12T15_02_35_338Z-debug.logkhalidvm@

c# - MongoDB 和 C# Find()

我有以下代码,而且我是mongodb的新手,我需要帮助来查找集合中的特定元素。usingMongoDB.Bson;usingMongoDB.Driver;namespacemongo_console{publicclassUser{publicObjectIdId{get;set;}publicstringname{get;set;}publicstringpwd{get;set;}}classProgram{staticvoidMain(string[]args){MongoClientclient=newMongoClient();MongoServerserver=client.

c# - MongoDB 和 C# Find()

我有以下代码,而且我是mongodb的新手,我需要帮助来查找集合中的特定元素。usingMongoDB.Bson;usingMongoDB.Driver;namespacemongo_console{publicclassUser{publicObjectIdId{get;set;}publicstringname{get;set;}publicstringpwd{get;set;}}classProgram{staticvoidMain(string[]args){MongoClientclient=newMongoClient();MongoServerserver=client.

node.js - 使用绝对路径导入组件时,Jest 给出 `Cannot find module`

运行Jest时收到以下错误Cannotfindmodule'src/views/app'from'index.jsx'atResolver.resolveModule(node_modules/jest-resolve/build/index.js:179:17)atObject.(src/index.jsx:4:12)index.jsximportAppContainerfrom'src/views/app';package.json"jest":{"collectCoverageFrom":["src/**/*.{js,jsx,mjs}"],"setupFiles":["/conf