node.js npm安装fs错误 [英] node.js npm install fs error

查看:533
本文介绍了node.js npm安装fs错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ubuntu@ip-xxx-xx-x-xxx:/var/www/html$ npm install fs
npm WARN package.json crypto@0.0.3 crypto is also the name of a node core module.
npm WARN package.json filesystem@1.0.1 No description
npm WARN package.json http@0.0.0 http is also the name of a node core module.
npm WARN package.json http@0.0.0 No description
npm WARN package.json http@0.0.0 No repository field.
npm WARN package.json js@0.1.0 No repository field.

npm WARN package.json querystring@0.2.0 querystring is also the name of a node core module.
    npm WARN package.json url@0.10.1 url is also the name of a node core module.
    npm WARN package.json util@0.10.3 util is also the name of a node core module.
    npm ERR! 404 Not Found
    npm ERR! 404 
    npm ERR! 404 'fs' is not in the npm registry.
    npm ERR! 404 You should bug the author to publish it
    npm ERR! 404 
    npm ERR! 404 Note that you can also install from a
    npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR!系统Linux 3.13.0-24-通用 npm ERR!命令"/usr/local/bin/node""/usr/local/bin/npm"安装""fs" npm ERR! cwd/var/www/html npm ERR!节点-v v0.10.29 npm ERR! npm -v 1.4.14 npm ERR!代码E404 npm ERR!错误:EACCES,打开"npm-debug.log" npm ERR! {[错误:EACCES,打开'npm-debug.log']错误号:3,代码:'EACCES',路径:'npm-debug.log'}

npm ERR! System Linux 3.13.0-24-generic npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "fs" npm ERR! cwd /var/www/html npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.14 npm ERR! code E404 npm ERR! Error: EACCES, open 'npm-debug.log' npm ERR! { [Error: EACCES, open 'npm-debug.log'] errno: 3, code: 'EACCES', path: 'npm-debug.log' }

npm ERR!请尝试以root/管理员身份再次运行此命令.

npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "fs"
npm ERR! cwd /var/www/html
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path npm-debug.log
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open 'npm-debug.log'
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /var/www/html/npm-debug.log
npm ERR! not ok code 0

我键入了"npm install fs",但看到此错误.

I 'm typed "npm install fs" ,but see the this error.

推荐答案

由于fs模块是节点核心模块的一部分,因此您会收到错误消息.您不需要安装. http://nodejs.org/api/fs.html

You're getting error because fs module is part of node's core modules. You don't need to install. http://nodejs.org/api/fs.html

这篇关于node.js npm安装fs错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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