danielbayley / atom-modular-snippets

:atom: A modular solution to snippets in @Atom.
https://atom.io/packages/modular-snippets
MIT License
9 stars 4 forks source link

Unable to install this plugin #6

Open garralab opened 7 years ago

garralab commented 7 years ago

I'm unable to install this plugin. Install give the error:

modular-snippets@0.1.3 preinstall C:\Users\AGARAG~1\AppData\Local\Temp\apm-install-dir-117017-17680-lop6d7\node_modules.staging\modular-snippets-3279cda4 mkdir -p "${ATOM_HOME:-$HOME/.atom}"/snippets

La sintassi del nome del file, della directory o del volume non è corretta. Errore occorso durante l'elaborazione: ${ATOM_HOME:-$HOME/.atom}/snippets.

That means file, directory or volume syntax error

kaytrance commented 7 years ago

I am having the same issue on my Win7 machine

barsh commented 7 years ago

me too, on Windows 10

Tekkromancer commented 7 years ago

Hello. Same issue:

The filename, directory name, or volume label syntax is incorrect.

Error occurred while processing: ${ATOM_HOME:-$HOME/.atom}/snippets.
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\user\AppData\Local\Temp\apm-install-dir-11759-13264-1gihbxb.4xyainqaor\package.json'

I'm running atom which was installed through Chocolatey if that makes a difference.

sphkress commented 7 years ago

This error hasn't been resolved yet, right? Because it still occurred to me too (Win10) --> the log-file mentioned to be sent does not exist after the installation fails, because it's a temporary directory. If the above commit can solve, please merge.

raymacz commented 6 years ago

Same won't install on Windows Installing “modular-snippets@0.1.3” failed

mkdir -p "${ATOM_HOME:-$HOME/.atom}"/snippets

jcc10 commented 6 years ago

This is not going to get updated is it?

I was really hoping to be able to have project-specific snippets.

RobMayer commented 6 years ago

Would love to see this resolved, if possible @danielbayley

Zireael commented 5 years ago

Dirty workaround to make installation work: 1) download this package source code from Github 2) Unpack in .atom\packages\atom-modular-snippets 3) Edit with Notepad file: package.json 4) Delete line: "preinstall": "mkdir -p \"${ATOM_HOME:-$HOME/.atom}\"/snippets" 5) run commandline/terminal (cmd) 6) Change directory to package folder (cd "C:\Users[xxxxx].atom\packages\atom-modular-snippets") 7) Type in: apm install 8) Create /snippets folder ("C:\Users[xxxxx].atom\snippets") 8) Profit (I've made it to work) 9) If something goes wrong do: apm uninstall atom-modular-snippets

If you can fix the line "preinstall": "mkdir -p \"${ATOM_HOME:-$HOME/.atom}\"/snippets" and fork this package, please do so :)