ricardofbarros / linter-js-standard

Atom linter plugin for JavaScript, using JavaScript Standard Style
https://atom.io/packages/linter-js-standard
MIT License
99 stars 48 forks source link

Cannot install (Windows specific) #73

Closed BrianSidebotham closed 8 years ago

BrianSidebotham commented 8 years ago

Perhaps not so much a linter-js-standard problem I suppose:

C:\>apm install linter-js-standard
Installing linter-js-standard to C:\Users\Brian.sidebotham\.atom\packages failed

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Users\\Brian.sidebotham\\AppData\\Local\\atom\\app-1.2.4\\resources\\app\\apm\\bi
n\\node.exe" "C:\\Users\\Brian.sidebotham\\AppData\\Local\\atom\\app-1.2.4\\resources\\app\\apm\\nod
e_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\Brian.sidebotham\\.atom\\.apm\\.apmrc"
 "--userconfig" "C:\\Users\\Brian.sidebotham\\.atom\\.apmrc" "install" "C:\\Users\\BRIAN~1.SID\\AppD
ata\\Local\\Temp\\d-1151025-7908-10u0n32\\package.tgz" "--target=0.34.0" "--arch=ia32" "--msvs_versi
on=2013"
npm ERR! node v0.10.40
npm ERR! npm  v2.13.3
npm ERR! path C:\Users\BRIAN~1.SID\AppData\Local\Temp\apm-install-dir-1151025-7908-r2pbsk\node_modul
es\linter-js-standard\node_modules\standard\node_modules\standard-format\node_modules\esformatter-js
x\node_modules\babel-core\node_modules\regenerator\node_modules\defs\node_modules\yargs\node_modules
\cliui\node_modules\right-align\node_modules\align-text\node_modules\kind-of\node_modules\is-buffer\
package.json.002dcc755706dd5569c61058b4f24757
npm ERR! code ENOENT
npm ERR! errno 34

npm ERR! enoent ENOENT, rename 'C:\Users\BRIAN~1.SID\AppData\Local\Temp\apm-install-dir-1151025-7908
-r2pbsk\node_modules\linter-js-standard\node_modules\standard\node_modules\standard-format\node_modu
les\esformatter-jsx\node_modules\babel-core\node_modules\regenerator\node_modules\defs\node_modules\
yargs\node_modules\cliui\node_modules\right-align\node_modules\align-text\node_modules\kind-of\node_
modules\is-buffer\package.json.002dcc755706dd5569c61058b4f24757'
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

C:\>atom --version

1.2.4

I suspect the 260 character path length limitation of Windows is to blame. That path above is 439 chars!

drazisil commented 8 years ago

If this is still an issue, use 7-zip to delete from your %appdata&\Local.atom if needed, then install 3.3.3 from the command line. Worked for me.

http://stackoverflow.com/a/28092770/335583