Node.js   发布时间:2022-04-24  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了node.js – 尝试运行grunt时找不到模块“findup-sync”大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
安装完成后,我遇到麻烦。我跑了

npm install -g grunt-cli

然后运行grunt错误

node.js:63
    throw e;
    ^
Error: CAnnot find module 'findup-sync'
    at loadModule (node.js:275:15)
    at require (node.js:411:14)
    at Object.<anonymous> (/home/tmarTin/bin/grunt:9:14)
    at Module._compile (node.js:462:23)
    at Module._loadScriptSync (node.js:469:10)
    at Module.loadSync (node.js:338:12)
    at Object.runMain (node.js:522:24)
    at Array.<anonymous> (node.js:756:12)
    at EventEmitter._tickCallBACk (node.js:55:22)
    at node.js:773:9

这是我安装的:

tmarTin@timcomp:~$ npm list -g
/home/tmarTin/lib
└─┬ grunt-cli@0.1.6
  ├─┬ findup-sync@0.1.2
  │ ├─┬ glob@3.1.21
  │ │ ├── graceful-fs@1.2.0
  │ │ ├── inherits@1.0.0
  │ │ └─┬ minimatch@0.2.11
  │ │   ├── lru-cache@2.2.2
  │ │   └── sigmund@1.0.0
  │ └── lodash@1.0.1
  └─┬ nopt@1.0.10
    └── abbrev@1.0.4

解决方法

我不得不安装和链接findup-sync和其他几个npm软件包来解决这些依赖问题。我然应该为我们处理他们,但手动安装依赖关系使问题消失。

npm安装findup-sync -g

npm链接findup-sync

大佬总结

以上是大佬教程为你收集整理的node.js – 尝试运行grunt时找不到模块“findup-sync”全部内容,希望文章能够帮你解决node.js – 尝试运行grunt时找不到模块“findup-sync”所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。