NV / chrome-devtools-autosave

Auto-saving CSS and JavaScript changes from the Chrome Developer Tools
MIT License
1.05k stars 90 forks source link

Autosave doesn't work, possibly npm install problem #59

Closed pychap closed 12 years ago

pychap commented 12 years ago

Hi,

Macbook pro, OSX Lion , 10.7.4, latest version of Chrome. I've been through all your steps. node.js isn't installing correctly after running "npm install -g autosave". After doing search, came up with this: http://superuser.com/questions/422614/cant-install-npm-cant-remove-npm-cant-access-any-commands-cant-install-co

So the result looked successful but you see at the last line "no such file or directory..."

UX-MacBook-Pro:~ peterchapman$ curl http://npmjs.org/install.sh | sudo clean=yes sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 7881 100 7881 0 0 12971 0 --:--:-- --:--:-- --:--:-- 53250 tar=/usr/bin/tar version: bsdtar 2.8.3 - libarchive 2.8.3 install npm@1.1 fetching: http://registry.npmjs.org/npm/-/npm-1.1.30.tgz 0.6.19 1.1.30 cleanup prefix=/usr/local

All clean! /usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js npm@1.1.30 /usr/local/lib/node_modules/npm It worked UX-MacBook-Pro:~ peterchapman$ chrome-devtools-autosave-server/index.js -bash: chrome-devtools-autosave-server/index.js: No such file or directory UX-MacBook-Pro:~ peterchapman$

Any insight to what the problem is?? pete

NV commented 12 years ago

node.js isn't installing correctly after running "npm install -g autosave"

You have to install Node.js before. You don’t need to install npm manually. Latest Node.js comes with npm.

UX-MacBook-Pro:~ peterchapman$ chrome-devtools-autosave-server/index.js -bash: chrome-devtools-autosave-server/index.js: No such file or directory

That’s not how you run it.

$ autosave
DevTools Autosave 1.0.0 is running on http://127.0.0.1:9104
pychap commented 12 years ago

Hi, Per above, I uninstalled Autosave, reinstalled (as you mentioned have to install Node.js before. Then ran it through terminal by " sudo npm install -g autosave " That was successful.

So I've got a simple html file on my desktop, also open in Sublime Text 2. As I edit in Chrome through inspect element I'm not getting any changes to my file in sublime - not saving in otherwords.

This is the path I have set in the Match & Save to areas: /Users/peterchapman/Desktop/ Is the path incorrect? I'm also not getting any Console messages.

Would really like to get this working, your patience is appreciated.

NV commented 12 years ago

How does URL of an edited file look like? Also, see Troubleshooting.

pychap commented 12 years ago

So the file I'm editing on the desktop has the local url: file:///Users/peterchapman/Desktop/index-test.html

In the extensions options these URL's are the first set: Match: ^file://[^/]*/ Save to: /Users/peterchapman/Desktop/

Second set: Match: ^http://localhost:8888/ Save to: /Applications/MAMP/htdocs/_jQuery/lesson-8/

Neither work. I get no Console errors. The Terminal says that DevTools Autosave 1.0.0 is running on http://127.0.0.1:9104.

Quit Chrome, restart. Nothing. WTF.

pychap commented 12 years ago

Hi Nikita,

I still don't have any functionality for AutoSave. Do you have any suggestions? I replied to your question below on GitHub. Thanks for any help.

Thank you, Peter Chapman www.creativepy.com C:: 619.750.8457 P:: 619.916.3533 LinkedIn Profile

On Jun 20, 2012, at 12:38 PM, Nikita Vasilyev wrote:

How does URL of an edited file look like? Also, see Troubleshooting.


Reply to this email directly or view it on GitHub: https://github.com/NV/chrome-devtools-autosave/issues/59#issuecomment-6464843

NV commented 12 years ago

In the extensions options these URL's are the first set: Match: ^file://[^/]*/ Save to: /Users/peterchapman/Desktop/

"Cannot read a file" error should pop up. Change "Save to" to default value (/) and it should work.