After Putting Node 5, Npm Err! Code Einvalidtype?
Solution 1:
I had the same issue on my linux machine. I upgraded my node from 5.0.0 to 5.1.0 and now works like a charm.
Solution 2:
same issue happend to me.
first i deleted the node_modules folder and then the package-lock.json file but the problem still persisted.
when i looked at my package.json file for some irregularities i noticed a dependency that was just an empty string - something like: "dependencies": {..., "": "^5.3.1" ,...}.
once i deleted that empty dependency, npm was running again.
hope this helps someone :)
Solution 3:
I simply deleted both the node_modules
folder as well as the package-lock.json
file and then rerun module installation with npm.
rm -rf node_modules
& then rm -rf package-lock.json
and finally npm install
Solution 4:
I manually added the package name (@materia-ui/core) in the package.json and ran npm install
once in the root directory and once in subdirectory (We have a mono-repo with lerna) and it worked. I have no idea how and why.
Don't forget to remove package-lock.json
and node_modules
Post a Comment for "After Putting Node 5, Npm Err! Code Einvalidtype?"