yarn crash on install pacakge

Do you want to request a feature or report a bug?
Report a bug

What is the current behavior?

error An unexpected error occurred: "Unknown token 92:1".

Log

Trace:
  SyntaxError: Unknown token 92:1
      at Parser.unexpected (/usr/local/lib/node_modules/yarn/updates/0.19.1/lib/lockfile/parse.js:224:11)
      at Parser.parse (/usr/local/lib/node_modules/yarn/updates/0.19.1/lib/lockfile/parse.js:329:14)
      at exports.default (/usr/local/lib/node_modules/yarn/updates/0.19.1/lib/lockfile/parse.js:13:17)
      at /usr/local/lib/node_modules/yarn/updates/0.19.1/lib/lockfile/wrapper.js:129:60
      at next (native)
      at step (/usr/local/lib/node_modules/yarn/updates/0.19.1/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
      at /usr/local/lib/node_modules/yarn/updates/0.19.1/node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13

If the current behavior is a bug, please provide the steps to reproduce.

yarn add babel-plugin-transform-remove-console-enhance --dev

What is the expected behavior?
add package

Please mention your node.js, yarn and operating system version.
OS: MacOS 10.12.3
node: v6.8.0
yarn: v0.19.1

Author: Fantashit

1 thought on “yarn crash on install pacakge

  1. Started running into a similar issue after the update to Yarn 0.20 on Debian Jessie:

    Arguments:
      /usr/bin/nodejs /usr/share/yarn/bin/yarn.js add nativescript
    
    PATH:
      /opt/local/bin:/opt/local/sbin:/usr/local/opt/go/libexec/bin:/google-cloud-sdk/bin:/google-cloud-sdk/platform/google_appengine:/google-cloud-sdk/platform/google_appengine/google/appengine/tools:/home/gibson/go/bin:/home/gibson/androidsdk/platform-tools:/home/gibson/androidsdk/tools:/home/gibson/.rvm/gems/ruby-2.4.0/bin:/home/gibson/.rvm/gems/ruby-2.4.0@global/bin:/home/gibson/.rvm/rubies/ruby-2.4.0/bin:/home/gibson/emsdk_portable:/home/gibson/emsdk_portable/clang/fastcomp/build_master_64/bin:/home/gibson/emsdk_portable/node/4.1.1_64bit/bin:/home/gibson/emsdk_portable/emscripten/master:/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/gibson/.rvm/bin:/node_modules/.bin:/home/gibson/.rvm/bin
    
    Yarn version:
      0.20.3
    
    Node version:
      6.9.5
    
    Platform:
      linux x64
    
    npm manifest:
      No manifest
    
    yarn manifest:
      No manifest
    
    Lockfile:
      No lockfile
    
    Trace:
      Error: ENOENT: no such file or directory, lstat '/home/gibson/balls/node_modules/nodobjc/node_modules'
          at Error (native)
          at Object.fs.lstatSync (fs.js:982:18)
          at Object.realpathSync (fs.js:1662:21)
          at /usr/share/yarn/lib/util/fs.js:377:80
          at throw (native)
          at step (/usr/share/yarn/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
          at /usr/share/yarn/node_modules/babel-runtime/helpers/asyncToGenerator.js:30:13
    

Comments are closed.