node.js npm install fs erreur
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.
mnp ERR! Système Linux 3.13.0-24-generic
npm ERR! la commande "/usr/local/bin/node" et "/usr/local/bin/mnp" "installer" fs"
npm ERR! cwd /var/www/html
npm ERR! nœud -v v0.10.29
npm ERR! npm-v 1.4.14
npm ERR! code E404
npm ERR! Erreur: EACCES, ouvrir " npm-debug.le journal'
npm ERR! { [Erreur: EACCES, ouvrir " npm-debug.log'] errno: 3, code: 'EACCES', path: 'npm-debug.le journal' }
mnp ERR! S'il vous plaît essayer de l'exécution de cette commande en tant que root/Administrateur.
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
Je 'm tapé "npm install fs" ,mais voir cette erreur.
OriginalL'auteur user3052269 | 2014-07-06
Vous devez vous connecter pour publier un commentaire.
Vous obtenez l'erreur, car fs module est une partie de nœud de base de modules. Vous n'avez pas besoin de l'installer. http://nodejs.org/api/fs.html
Error: Can't resolve 'fs'.
, soit l'un de cesimport { fs } from "fs";
ouconst fs = require('fs');
OriginalL'auteur Ben
vous n'avez pas besoin d'installer nodejs modules internes, mais vous pouvez les mettre à jour.
fs est un noeud interne js module de!
OriginalL'auteur a.miadian