如何安装 chrome 自动保存扩展?

如何安装 chrome 自动保存扩展?

我想在 ubuntu 上安装 chrome 自动保存插件。当我尝试按照以下步骤安装它时https://github.com/NV/chrome-devtools-autosave-server,我遇到了一些错误...

ubuntu 12.10 上没有安装现成的 node 和 npm。因此我使用这些命令安装了 npm 和 node。

sudo apt-get install npm
sudo apt-get install node

我尝试安装自动保存功能

输出如下:

sudo npm install -g autosave
npm http GET https://registry.npmjs.org/autosave
npm http 304 https://registry.npmjs.org/autosave
npm http GET https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/commander
/usr/local/bin/autosave -> /usr/local/lib/node_modules/autosave/bin/autosave

> [email protected] install /usr/local/lib/node_modules/autosave
> node ./scripts/install.js

npm ERR! error installing [email protected]
npm WARN This failure might be due to the use of legacy binary "node" 
npm WARN For further explanations, please read
npm WARN /usr/share/doc/nodejs/README.Debian
npm WARN 

npm ERR! [email protected] install: `node ./scripts/install.js`
npm ERR! `sh "-c" "node ./scripts/install.js"` failed with 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the autosave package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./scripts/install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls autosave
npm ERR! There is likely additional logging output above.
npm ERR! 
npm ERR! System Linux 3.5.0-17-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "autosave"
npm ERR! cwd /home/naczu
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.4
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] install: `node ./scripts/install.js`
npm ERR! message `sh "-c" "node ./scripts/install.js"` failed with 1
npm ERR! errno {}
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/naczu/npm-debug.log
npm not ok

这是 README.debian

nodejs for Debian
=================

packaged modules
----------------

The global search path for modules is
/usr/lib/nodejs

Future packages of node modules will use that directory,
so it should be used wisely.


user modules
------------

Node looks for modules in ./node_modules directory first;
please read node#modules documentation carefully for more information.

Node does not look for modules in /usr/local/lib/node_modules,
where npm put them.
Please read npm-link(1) of npm package, to understand how to properly
use npm-installed modules in a project.

Note that require.paths is not supported in future node versions.
See also node(1) for more information about NODE_PATH.


nodejs command
--------------

The upstream name for the Node.js interpreter command is "node".
In Debian the interpreter command has been changed to "nodejs".

This was done to prevent a namespace collision: other commands use
the same name in their upstreams, such as ax25-node from the "node"
package.

Scripts calling Node.js as a shell command must be changed to instead
use the "nodejs" command.

答案1

好的,我的问题解决了。我找到了一个更好的扩展。那就是 Tincr。您可以在 chrome dev tools 上编辑和自动保存 js 和 css 文件。这绝对非常有用。这是链接。也许有些人和我一样需要这个。点击这里

相关内容