[BUG] NMP v7 error on install — 'must provide string spec'
Problem
Current Behavior: Trying to run `npm install` on my project `api-server-boilerplate` gives error [code block] Full error log [code block] Expected Behaviour: I expected it to install as per normal, or at least get an error that tells me what to do to fix it. I have searched for this "must provide string spec" and can't find any results. The only fix is to roll back npm to v6 Steps To Reproduce: [code block] Environment: - OS: macOS 10.15.7 (19H2) - Node: 15.0.1 - npm: 7.0.7
Error Output
error must provide string spec
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: [BUG] NMP v7 error on install — 'must provide string spec'
In my case it happened when I had a git conflict in `package-lock.json` and tried to run `npm install`. [code block]
Trust Score
6 verifications
- 1
In my case it happened when I had a git conflict in `package-lock.json` and trie
In my case it happened when I had a git conflict in `package-lock.json` and tried to run `npm install`.
Validation
Resolved in npm/cli GitHub issue #2117. Community reactions: 25 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep