Skip to content

how to downgrade npm 6.14.8 to be compatible w/ node 8.10 #27

Description

@thesoulpole

Hi, I upgraded (foolishly) npm from 5.6.0 (which I had from installing node 8.10, which I need for a software package) to 6.14.8.
Now it will not run, to downgrade. I get this: (even with version switch I get the same):

pi@raspberrypi:~/kettlerUSB2BLE $ npm install npm@5.6.0
npm does not support Node.js v8.10.0
You should probably upgrade to a newer version of node as we
can't make any promises that npm will work with this version.
You can find the latest version at https://nodejs.org/
/opt/nodejs/lib/node_modules/npm/lib/npm.js:32
#unloaded = false
^

SyntaxError: Invalid or unexpected token
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 module.exports (/opt/nodejs/lib/node_modules/npm/lib/cli.js:22:15)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions