Node.js 0.8.15 npm 错误:找不到模块“proto-list" [英] Node.js 0.8.15 npm Error: Cannot find module 'proto-list'

查看:71
本文介绍了Node.js 0.8.15 npm 错误:找不到模块“proto-list"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过从源代码编译在 Ubuntu 11.10 x64 上安装了最新的 Node.js (0.8.15).

<前>./configure --dest-cpu=x64制作须藤制作安装

一切正常,Node.js 运行良好,但 npm 不想正常运行.它为任何 npm 命令提供以下错误

<前>错误:找不到模块proto-list"在 Function.Module._resolveFilename (module.js:338:15)在 Function.Module._load (module.js:280:25)在 Module.require (module.js:362:17)在要求 (module.js:378:17)在对象.(/usr/local/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/index.js:2:17)在 Module._compile (module.js:449:26)在 Object.Module._extensions..js (module.js:467:10)在 Module.load (module.js:356:32)在 Function.Module._load (module.js:312:12)在 Module.require (module.js:362:17)

顺便说一下,我会定期更新我的 Node.js,我之前的版本是 Node.js 0.8.12,其中 npm 可以正常工作.有谁知道如何解决这种情况?还是我做错了什么?

提前致谢

解决方案

您似乎要要求一个未安装的模块!??

尝试

npm install proto-list

I have installed the latest Node.js (0.8.15) on Ubuntu 11.10 x64 by compiling from sources.

 ./configure --dest-cpu=x64
 make
 sudo make install

All was OK and Node.js was working perfect but npm doesn't want to work properly. It give the following error for any npm commands

Error: Cannot find module 'proto-list'
    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 Object. (/usr/local/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/index.js:2:17)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)

By the way, I am updating my Node.js periodically and my previous version was Node.js 0.8.12 where npm worked properly. Does anybody know how to resolve this situation? Or what I did wrong?

Thank you in advance

解决方案

it looks like you want to require a module which is not installed!??

try to

npm install proto-list

这篇关于Node.js 0.8.15 npm 错误:找不到模块“proto-list"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆