Skip to content

Error 'Must use npm@>=5' while using npm 5.4.2 #25

Closed
@ixje

Description

@ixje

Eriks-Air:neonwallet erik$ ./node_modules/.bin/patch-package react-navigation

ERROR No package-lock.json, npm-shrinkwrap.json, or yarn.lock file.

You must use either npm@>=5, yarn, or npm-shrinkwrap to manage this project's
dependencies.

Eriks-Air:neonwallet erik$ npm -v
5.4.2

Also likely related:

Eriks-Air:neonwallet erik$ npm -v
5.4.2
Eriks-Air:neonwallet erik$ grep "prepare" package.json
"prepare": "patch-package"
Eriks-Air:neonwallet erik$ npm prepare -- react-navigation

Usage: npm

where is one of:
access, adduser, bin, bugs, c, cache, completion, config,
ddp, dedupe, deprecate, dist-tag, docs, doctor, edit,
explore, get, help, help-search, i, init, install,
install-test, it, link, list, ln, login, logout, ls,
outdated, owner, pack, ping, prefix, prune, publish, rb,
rebuild, repo, restart, root, run, run-script, s, se,
search, set, shrinkwrap, star, stars, start, stop, t, team,
test, tst, un, uninstall, unpublish, unstar, up, update, v,
version, view, whoami

npm -h quick help on
npm -l display full usage info
npm help search for help on
npm help npm involved overview

Specify configs in the ini-formatted file:
/Users/erik/.npmrc
or on the command line via: npm --key value
Config info can be viewed via: npm help config

npm@5.4.2 /usr/local/lib/node_modules/npm

I've followed all the instructions as far as I can see. I also can't really tell why it's failing. Any help/tips are appreciated

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