jspm / jspm-cli

ES Module Package Manager
https://jspm.org
Apache License 2.0
3.79k stars 272 forks source link

SyntaxError: Unexpected reserved word #2517

Closed apporoad closed 1 year ago

apporoad commented 4 years ago

error when : jspm install lodash @ ubuntu

err (jspm) /usr/local/lib/node_modules/jspm/node_modules/@jspm/npm/npm.js:303
    for await (const chunk of createPublishStream.call(this, pjson, tarStream, { readme, description: pjson.description, tag, access, registryUrlObj })) {
        ^^^^^

SyntaxError: Unexpected reserved word
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:616:28)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at RegistryManager.getEndpoint (/usr/local/lib/node_modules/jspm/lib/install/registry-manager.js:100:39)