Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm search failing with "npm ERR! Unexpected token g" #13247

Closed
1 of 13 tasks
geuis opened this issue Jul 1, 2016 · 1 comment
Closed
1 of 13 tasks

npm search failing with "npm ERR! Unexpected token g" #13247

geuis opened this issue Jul 1, 2016 · 1 comment
Assignees

Comments

@geuis
Copy link

geuis commented Jul 1, 2016

I'm opening this issue because:

  • npm is crashing.
  • npm is producing an incorrect install.
  • npm is doing something I don't understand.
  • Other (see below for feature requests):

What's going wrong?

When I search for something, I get results for the first search. Subsequent searches, even for the same term, produce invalid output.

I have uninstalled and reinstalled the latest npm@3.10.3 and have the same issue that was occuring with 3.9 (previously installed).

How can the CLI team reproduce the problem?

npm-debug.log gist here: https://gist.github.com/geuis/198fd71410a40bfeaf0a875f42b276ef

npm cache clean
npm search
// get correct results
npm search
// get error and invalid results

// now do the whole thing again
npm cache clean
npm search
// get correct results
npm search
// get error and invalid results

supporting information:

  • npm -v prints: 3.10.3
  • node -v prints: v4.3.1
  • npm config get registry prints: http://registry.npmjs.org/
  • Windows, OS X, or Linux?: OS X
  • Network issues:
    • Geographic location where npm was run: San Francisco
    • I use a proxy to connect to the npm registry.
    • I use a proxy to connect to the web.
    • I use a proxy when downloading Git repos.
    • I access the npm registry via a VPN
    • I don't use a proxy, but have limited or unreliable internet access.
  • Container:
    • I develop using Vagrant on Windows.
    • I develop using Vagrant on OS X or Linux.
    • I develop / deploy using Docker.
    • I deploy to a PaaS (Triton, Heroku).
@zkat
Copy link
Contributor

zkat commented Aug 23, 2016

This should be fixed by #13746 once that's done.

@zkat zkat self-assigned this Aug 23, 2016
@zkat zkat mentioned this issue Aug 23, 2016
27 tasks
@zkat zkat closed this as completed in 2b8057b Oct 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants