zenorocha / atom-javascript-snippets

JavaScript & NodeJS Snippets for Atom Editor
https://atom.io/packages/javascript-snippets
168 stars 104 forks source link

Apm install not working in development #41

Closed mikeLspohn closed 8 years ago

mikeLspohn commented 8 years ago

I'm not sure what the expected Node/npm versions are to run this, but running apm install for me produces this:

Installing modules ✗
javascript-snippets@1.2.1 /Users/michael/code/github/mikeLspohn/atom-javascript-snippets
├─┬ grunt@0.4.2
│ ├── async@0.1.22
│ ├── coffee-script@1.3.3
│ ├── colors@0.6.2
│ ├── dateformat@1.0.2-1.2.3
│ ├── eventemitter2@0.4.14
│ ├── exit@0.1.2
│ ├─┬ findup-sync@0.1.3
│ │ ├─┬ glob@3.2.11
│ │ │ ├── inherits@2.0.3
│ │ │ └── minimatch@0.3.0
│ │ └── lodash@2.4.2
│ ├── getobject@0.1.0
│ ├─┬ glob@3.1.21
│ │ ├── graceful-fs@1.2.3
│ │ └── inherits@1.0.2
│ ├── hooker@0.2.3
│ ├── iconv-lite@0.2.11
│ ├─┬ js-yaml@2.0.5
│ │ ├─┬ argparse@0.1.16
│ │ │ ├── underscore@1.7.0
│ │ │ └── underscore.string@2.4.0
│ │ └── esprima@1.0.4
│ ├── lodash@0.9.2
│ ├─┬ minimatch@0.2.14
│ │ ├── lru-cache@2.7.3
│ │ └── sigmund@1.0.1
│ ├─┬ nopt@1.0.10
│ │ └── abbrev@1.0.9
│ ├─┬ rimraf@2.0.3
│ │ └── graceful-fs@1.1.14
│ ├── underscore.string@2.2.1
│ └── which@1.0.9
└─┬ grunt-cli@0.1.11
  └── resolve@0.3.1

npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated graceful-fs@1.1.14: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm ERR! Darwin 15.5.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/michael/.atom/.apm/.apmrc" "--userconfig" "/Users/michael/.atom/.apmrc" "install" "--runtime=electron" "--target=0.37.8" "--arch=x64"
npm ERR! node v4.4.5
npm ERR! npm  v3.10.5
npm ERR! path /Users/michael/code/github/mikeLspohn/atom-javascript-snippets/node_modules/editorconfig/bin\editorconfig
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/michael/code/github/mikeLspohn/atom-javascript-snippets/node_modules/editorconfig/bin\editorconfig'
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/michael/code/github/mikeLspohn/atom-javascript-snippets/node_modules/editorconfig/bin\editorconfig'
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!     /Users/michael/code/github/mikeLspohn/atom-javascript-snippets/npm-debug.log

I noticed it's missing editorconfig in package.json, so I installed that, but still received errors.

mikeLspohn commented 8 years ago

So after uninstalling and reinstalling a few times it started working. No idea what fixed it, but yeah. Looks like editorconfig has caused issues in grunt-lintspaces and some other repo's so it may have been something to do with.

mikeLspohn commented 8 years ago

Ok, so removing grunt-lintspaces is what fixed it for me. It looks like that Travis build needs that though. Any suggestions on this?

gabsprates commented 8 years ago

hey @mikeLspohn, do fix this problem? I have the same.

zenorocha commented 8 years ago

Thanks for reporting! This should be fixed now https://github.com/zenorocha/atom-javascript-snippets/commit/0148a88c10e973f8ff96d3ae01d6da1c53c32c7b