Muy fácil de reproducir, solo intente instalarlo.
Probé en Windows, Linux y SmartOS y obtuve lo mismo.
npm instalar js-beautify
npm WARN enoent ENOENT: no existe tal archivo o directorio, abra '/home/andra/trash/blah/package.json'
npm WARN blah Sin descripción
npm WARN blah Sin campo de repositorio.
npm WARN blah No hay datos README
npm WARN blah Sin campo de licencia.
npm ERR! Linux 4.4.0-92-genérico
npm ERR! argv "/ usr / local / bin / node" "/ usr / local / bin / npm" "instalar" "js-beautify"
npm ERR! nodo v6.9.1
npm ERR! npm v3.10.8
npm ERR! ruta /home/andra/trash/blah/node_modules/js-beautify/js/bin/css-beautify.js
npm ERR! código ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no existe tal archivo o directorio, chmod '/home/andra/trash/blah/node_modules/js-beautify/js/bin/css-beautify.js'
npm ERR! enoent ENOENT: no existe tal archivo o directorio, chmod '/home/andra/trash/blah/node_modules/js-beautify/js/bin/css-beautify.js'
npm ERR! enoent Esto probablemente no sea un problema con npm en sí
npm ERR! enoent y está relacionado con que npm no pueda encontrar un archivo.
npm ERR! enoent
npm ERR! Incluya el siguiente archivo con cualquier solicitud de soporte:
npm ERR! /home/andra/trash/blah/npm-debug.log
fwiw, esto es un engaño de https://github.com/beautify-web/js-beautify/issues/1247
Lo mismo para nosotros. Todos los trabajos están fallando ...
Existe una versión anterior,
pero el último 1.7.0 - no existe
yurii<strong i="7">@hp0143</strong>:/home/si/$ npm i [email protected]
[email protected] /home/si/
└── [email protected]
npm WARN [email protected] No repository field.
yurii<strong i="8">@hp0143</strong>:/home/si/$ npm i [email protected]
npm WARN [email protected] No repository field.
npm ERR! Linux 4.9.0-3-amd64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "i" "[email protected]"
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! path /home/si/node_modules/js-beautify/js/bin/css-beautify.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/home/si/node_modules/js-beautify/js/bin/css-beautify.js'
npm ERR! enoent ENOENT: no such file or directory, chmod '/home/si/node_modules/js-beautify/js/bin/css-beautify.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /home/si/npm-debug.log
Mismo error aquí
Mismo error para mí ...
mismo error
mismo error aquí
Corregido en 1.7.2.
Vea el n. ° 1254. Se implementarán pruebas para protegerse contra esto en el futuro.
Comentario más útil
fwiw, esto es un engaño de https://github.com/beautify-web/js-beautify/issues/1247