- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
错误:找不到所有 Meteor 命令在控制台中抛出的模块“下划线”
在每个 meteor 或陨石命令(例如 meteor
或 mrt create myapp
之后,都会抛出以下错误。这个错误似乎是突然出现的,因为 meteor 在前一天晚上就可以正常工作,此后没有进行任何更改。
Austins-MacBook-Pro:Projects austinrivas$ mrt create test-app
/Users/austinrivas/.meteor/tools/3cba50c44a/tools/meteor.js:1480
}).run();
^
Error: Cannot find module 'underscore'
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 /Users/austinrivas/.meteor/tools/3cba50c44a/tools/meteor.js:10:11
我已经尝试使用 sudo npm install -g underscore
手动安装下划线
Austins-MacBook-Pro:Projects austinrivas$ sudo npm install -g underscore
Password:
npm http GET https://registry.npmjs.org/underscore
npm http 200 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/underscore/-/underscore-1.5.2.tgz
npm http 200 https://registry.npmjs.org/underscore/-/underscore-1.5.2.tgz
npm WARN unmet dependency /usr/local/share/npm/lib/node_modules/phonegap/node_modules/cordova requires colors@'>=0.6.0' but will load
npm WARN unmet dependency /usr/local/share/npm/lib/node_modules/phonegap/node_modules/colors,
npm WARN unmet dependency which is version 0.6.0-1
npm WARN unmet dependency /usr/local/share/npm/lib/node_modules/phonegap/node_modules/node-static requires colors@'>=0.6.0' but will load
npm WARN unmet dependency /usr/local/share/npm/lib/node_modules/phonegap/node_modules/colors,
npm WARN unmet dependency which is version 0.6.0-1
underscore@1.5.2 /usr/local/share/npm/lib/node_modules/underscore
我的 ~/.bash_profile 有以下路径
export PATH=/usr/local/share/npm/bin:$PATH
export NODE_PATH="/usr/local/share/npm/lib/node_modules"
export NODE_OPTIONS="--debug"
我什至尝试过重新安装 Node 并执行 npm 缓存清理
,但我不确定还能尝试什么。
任何进一步的见解将不胜感激。
更新
运行 npm list -g underscore
返回以下内容
Austins-MacBook-Pro:~ austinrivas$ npm list -g underscore
npm WARN unmet dependency /usr/local/share/npm/lib/node_modules/phonegap/node_modules/cordova requires colors@'>=0.6.0' but will load
npm WARN unmet dependency /usr/local/share/npm/lib/node_modules/phonegap/node_modules/colors,
npm WARN unmet dependency which is version 0.6.0-1
npm WARN unmet dependency /usr/local/share/npm/lib/node_modules/phonegap/node_modules/node-static requires colors@'>=0.6.0' but will load
npm WARN unmet dependency /usr/local/share/npm/lib/node_modules/phonegap/node_modules/colors,
npm WARN unmet dependency which is version 0.6.0-1
/usr/local/share/npm/lib
├─┬ meteorite@0.6.11
│ ├─┬ ddp@0.3.4
│ │ └─┬ meteor-ejson@0.6.3
│ │ └── underscore@1.4.4
│ └── underscore@1.5.1
├─┬ phonegap@3.0.0-0.14.0
│ └─┬ cordova@3.0.0
│ ├─┬ follow-redirects@0.0.3
│ │ └── underscore@1.5.1
│ └─┬ plugman@0.9.10
│ ├─┬ dep-graph@1.1.0
│ │ └── underscore@1.2.1
│ └── underscore@1.4.4
├── underscore@1.5.2
└─┬ ungit@0.1.8
└── underscore@1.4.4
最佳答案
我能够通过以下步骤完全卸载/重新安装 meteor
和 meteorite
来解决此错误。
sudo rm /usr/local/bin/meteor
rm -rf ~/.meteor
sudo mrt uninstall
sudo mrt uninstall --system
sudo chown -R `whoami` ~/.npm
curl https://install.meteor.com | /bin/sh
sudo -H npm install -g meteorite
我能够通过运行 meteor --version
和 mrt create test-app
验证一切正常工作
关于javascript - 错误 : Cannot find module 'underscore' thrown in console for all Meteor commands,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18678924/
在运行我的单元测试时,有时,即使它们通过了,在所有测试运行结束时,我也会收到以下错误。 在运行 PhantomJS 的 Jenkins CI 构建中: .PhantomJS 2.1.1 (Linux
当我在我的 Angular 项目中运行 ng test 命令时出现错误,它给出了这样的错误 10% building modules 1/1 modules 0 active04 12 2018 11
当我进行 Angular 4 单元测试时,其中一个使用 google maps 和 agm 包的页面显示错误: An error was thrown in afterAll\n[object Err
我的“JavaClassLoader”库有问题。我想为应用程序编写一个启动器。最后应该可以关闭程序、更新并重新启动。现在,当我尝试使用参数调用方法时,我总是得到 NoSuchMethodEx。 我想要
我收到的异常是 Exception thrown at 0x70F8516F (vcruntime140d.dll) in Project.exe: 0xC0000005: Access violat
本周两次,我读到有人写过一个事件 (.net) 被“抛出”。我一直认为用于事件的动词是“fire”或“raise”。我认为“thrown”用于异常,而不是用于事件(“raise”可用于任何一个)。 有
我得到的完整错误是这个。 在“FooBlogBundle:Article:articles.html”中呈现模板期间抛出异常(“缺少一些强制性参数(“id”)以生成路由“FooBlogBund
我正在做一些调试,我真的想打开“抛出异常时中断”选项。我依赖的第三方程序集会定期抛出异常。其中一些,例如 SynchronizationLockException,我可以通过 Debug -> Exc
我的家庭作业有问题。我们的作业由在线网站评分,我不断收到有关下面显示的代码的以下错误。 错误: Exception conditions. Incorrect exception thrown for
我正在尝试通过 ./spark-submit 向 Spark 提交申请。 我用java构建了一个jar,代码如下: import org.apache.spark.SparkConf; import
我的应用程序(基于 vlcj 的音乐播放器)有一个非常奇怪的行为。我使用 ConcurrentHashMap 来缓存有关艺术家的信息。 如果我在 HashMap 上调用 get ,程序似乎会停止,但不
我的网页上有一个下拉列表,其中的选定项目必须传递给数据库中的存储过程查询。但是,我的绑定(bind)方法中的 adp.Fill(ds) 出现了一个奇怪的错误。 异常总是显示“关键字‘to’附近的语法不
创建 javaodc 时,您描述了您的方法可以抛出的异常,对吗? 看例子: public void createLogFile() { try { file.createNe
当我运行我的应用程序时,出现错误:抛出另一个异常:类型 'String' 不是 'index' 类型 'int' 的子类型 我的 android 屏幕立即因上述错误而变红,但只是片刻。之后恢复正常。我
这并不特别适用于任何语言,但如果重要的话,我在 Visual Studio 2008 中使用 VB.NET。 我似乎无法找到任何关于这个主题的真正有用的东西,但我想知道当抛出和捕获异常但由于它已被抛出
当我跑 nuget restore从命令行,我得到 Error parsing solution file at MyProject.sln: Exception has been thrown by
我是 flutter 的新手,每次运行应用程序时都会出错: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═════════════════════════════
Edit: Visual Studio 2015's new exception window is so much faster than the old dialog that I no long
这是一个常见问题的奇怪变种。 我正在使用 headless Firefox 浏览器运行 Selenium 项目。 我得到了常见的NoSuchElementExceptions。这不是什么新鲜事。但是,
我有一个在 vs 2012 Ultimate 中开发的 ssis 项目。我使用项目部署模型,并将项目设置为在 32 位模式下运行。该包在我的开发环境中执行时没有错误,但是当我将其部署到 ssis 目录
我是一名优秀的程序员,十分优秀!