本文介绍了NPM无法安装appjs.错误:找不到模块"graceful-fs"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经安装了node.js和npm,但是当我尝试安装appjs时出现此错误:
I installed node.js and npm already, but when I try to install appjs I get this error:
zephlon@zephlon-T5254:~$ npm install appjs
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'graceful-fs'
at Function._resolveFilename (module.js:334:11)
at Function._load (module.js:279:25)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object.<anonymous> (/usr/share/npm/lib/utils/ini.js:32:10)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Module.require (module.js:357:17)
任何尝试安装graceful-fs
的操作都会收到类似的错误.
I get similar errors on any attempt to install graceful-fs
.
我正在使用Ubuntu 12.04 LTS.
I am using Ubuntu 12.04 LTS.
P.S .:这是指向appjs网站的链接: http://appjs.org/
P.S.: Here's the link to the appjs website:http://appjs.org/
推荐答案
使用以下脚本解决此问题
use the following script to solve this
git clone git://github.com/isaacs/npm.git
cd npm/script
chmod +x bootstrap
sudo ./bootstrap
这篇关于NPM无法安装appjs.错误:找不到模块"graceful-fs"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!