when I install npm, as shown above, the message messge show: Error: cannot find module '/private/var/folders/dm/bzjdbz_s1z1bby3p087g0jr00000gn/T/npm.922/package/bin/read-package-json.js'
see pic.any tips for more details? thanks
Here's how I solved it:
echo prefix=~/.npm-packages >> ~/.npmrc wget https://registry.npmjs.org/npm/-/npm-5.5.1.tgz tar xf npm-5.5.1.tgz cd package ./npm-cli.js install npm -g
You can follow these steps:
brew uninstall --force node brew update brew upgrade brew cleanup brew install node sudo chown -R $(whoami) /usr/local #may not work brew link --overwrite node sudo brew postinstall node #may not work
You may have problems with sudo, but don't worry that it should work without it :)
Source: https://habr.com/ru/post/1271892/More articles:How to get module name by class in Java 9? - javaGradle - Including other project errors - javaggplot2 - How to apply a manual gradient with a legend when the graph point is not a coloring point in the same coordinates - rWash the method call, which is in the same class that I am testing, is this really a code smell? - javaKatalon - export registered test script to java / junit - seleniumAull reports and degree reports in selenium - seleniumCreate a custom pop-up keyboard for alternate keys - androidPHP CodeIgniter Email Delay - phpNo Grants in / beta / oAuth 2Permissiongrants Call Schedule - azure-active-directoryError: AGPBI: program type is already present: com.google.android.gms.auth.api.signin.internal.zzg - androidAll Articles