-
Notifications
You must be signed in to change notification settings - Fork 3k
npm ERR! Cannot read property 'match' of undefined #20954
Comments
The error actually happens each time I use |
Please take a look at https://npm.community/t/cannot-read-property-match-of-undefined/203/2. |
@legodude17 I'm not sure I understand on what to do? I understand that by removing the lock file, I can use npm i once again. But then it is broken again. |
Yeah also seeing this issue. Deleting the lock file every time is not a solution for sure 😸 Here's my stack trace:
Using v6.1.0 |
Deleting the lock-file is not what the instruction in the community link was. The instruction is: Delete the lock-file AND the node_modules:
Can you all retry with that? |
I tried both, the lockfile only and lockfile with node_modules. Both worked for me. |
@iarna Removing the lock file AND the node_modules folder worked for me. Only removing the lock file only worked once. |
I'm not sure why this issue is closed - it doesn't seem as though a true solution was found, only a workaround. Isn't the desirable behaviour to have npm handle this on it own? Can anyone help with a workaround for global modules? Installed via homebrew and can't locate my package-lock.json anywhere! Edit: use yarn |
Get this error from time to time, should I switch to yarn? |
Still happening to me, it seemed that it was related to babel and the beta packages... |
I'm opening this issue because:
What's going wrong?
D:\MyDev\ljs_app\trunk\periscope\build>npm i
npm ERR! Cannot read property 'match' of undefined
2018-06-11T07_39_39_234Z-debug.log
When removing the
package-lock.json
file the installation works again.How can the CLI team reproduce the problem?
Run npm i with the attached files
x.zip
configuration files:
supporting information:
npm -v
prints: 6.1.0node -v
prints: 10.4.0npm config get registry
prints: http://registry.npmjs.org/The text was updated successfully, but these errors were encountered: