noseglid / atom-build

:hammer: Build your project directly from the Atom editor
https://atom.io/packages/build
MIT License
248 stars 97 forks source link

Install fails: deprecated cross-spawn-async@2.2.4 #479

Closed fusion809 closed 7 years ago

fusion809 commented 7 years ago

Hi,

I ran $ apm install build on Ubuntu 16.04 with Atom 1.11.2 installed and it returned the error:

Installing build to /home/fusion809/.atom/packages ✗

npm WARN deprecated cross-spawn-async@2.2.4: cross-spawn no longer requires a build toolchain, use it instead!  
npm ERR! Linux 4.4.0-43-generic
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/fusion809/.atom/.apm/.apmrc" "--userconfig" "/home/fusion809/.atom/.apmrc" "install" "/tmp/d-116920-20913-12lg2f2/package.tgz" "--runtime=electron" "--target=0.37.8" "--arch=x64" "--global-style"
npm ERR! node v4.4.5
npm ERR! npm  v3.10.5
npm ERR! file /home/fusion809/.atom/.apm/argparse/1.0.9/package/package.json
npm ERR! code EJSONPARSE

npm ERR! Failed to parse json
npm ERR! No data, empty input at 1:1
npm ERR! 
npm ERR! ^
npm ERR! File: /home/fusion809/.atom/.apm/argparse/1.0.9/package/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR! 
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-116920-20913-1bbtssm/npm-debug.log

Thanks for your time, Brenton

fusion809 commented 7 years ago

Nvm after deleting my ~/.atom/.apm folder this error went away.