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

Error when using npm #12687

Closed
travisso opened this issue May 13, 2016 · 1 comment
Closed

Error when using npm #12687

travisso opened this issue May 13, 2016 · 1 comment

Comments

@travisso
Copy link

travisso commented May 13, 2016

Hi,

Just installed node.js v4.4.4 with npm v2.15.1 in CentOS 5.8. However, when calling npm such as npm version or npm install, the above error occured:

[root@dev01 local]# npm version
SyntaxError: Unexpected token ILLEGAL
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at /usr/local/lib/node_modules/npm/node_modules/npm-registry-client/index.js:73:20
    at Array.forEach (native)
    at CachingRegistryClient.RegClient (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/index.js:51:42)
npm ERR! Linux 2.6.18-308.el5
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "version"
npm ERR! node v4.4.4
npm ERR! npm  v2.15.1

npm ERR! Unexpected token ILLEGAL
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

Anyone would help? Thanks.

@npm-robot
Copy link

We're closing this support issue as it has gone three days without activity. The npm CLI team itself does not provide support via this issue tracker, but we are happy when users help each other here. In our experience once a support issue goes dormant it's unlikely to get further activity. If you're still having problems, you may be better served by joining package.community and asking your question there.

For more information about our new issue aging policies and why we've instituted them please see our blog post.

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