-
Notifications
You must be signed in to change notification settings - Fork 847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm can't install or update #2529
Comments
Thanks for opening your first issue here! Be sure to follow the issue template and include your OS/Vagrant/VVV versions! Don't forget you can get support in the VVV slack at https://varyingvagrantvagrants.org/docs/en-US/slack/
|
It's extremely unlikely that there is a VVV oriented solution to this. The only things I can suggest are all Windows related issues regarding symlink support, which is not an issue on MacOS hosts. |
If I had to grasp at straws:
|
I spun up a fresh default VVV installation without any customization or configuration and provisioned the vagrant box and ssh'ed into it and I experienced the same issue in it. Also because it's a completely fresh install, that implies to me that there isn't a disk space issue happening. I ran I was able to successfully use I tried to downgrade VirtualBox to 6.0 and the installation would just fail, but duly noted. |
@columbian-chris do you have instructions to reproduce? Where is
kernel extensions need to be removed, you have to run the Virtualbox uninstaller, you can' just install an older version over the top |
I'm sure at some point the command you were running that was failing was in this issue? You're describing the results of what you're trying to do but you've never actually shared what it is that you did, please share explicit instructions with commands and links so that I can reproduce step for step what you did locally at my end |
also |
The easiest reproduction could possibly be to run an
|
Sorry, of which software? I didn't use the development branch or release of anything I was using. It should all be stable or LTS. |
I tried to use the uninstall tool, but MacOS prevented me from doing so and said |
@columbian-chris of VVV, we don't have an LTS release
Go to the security options pane of system preferences and press allow then try again. |
Also that's a lot of packages to install at the same time! Here's my splash screen for reference:
I tried to run the command and it succeeded when ran in an empty folder: vagrant@vvv:/srv/www/wordpress-one/public_html/wp-content/themes$ mkdir npmtest
vagrant@vvv:/srv/www/wordpress-one/public_html/wp-content/themes$ cd npmtest/
vagrant@vvv:/srv/www/wordpress-one/public_html/wp-content/themes/npmtest$ npm install bootstrap bootstrap-icons gulp gulp-autoprefixer gulp-cli gulp-concat gulp-csso gulp-imagemin gulp-livereload gulp-plumber gulp-sass gulp-sourcemaps gulp-uglify intersection-observer js-cookie popper.js slim-select tablesorter tiny-date-picker
npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
> [email protected] postinstall /srv/www/wordpress-one/public_html/wp-content/themes/npmtest/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> [email protected] postinstall /srv/www/wordpress-one/public_html/wp-content/themes/npmtest/node_modules/gifsicle
> node lib/install.js
✔ gifsicle pre-build test passed successfully
> [email protected] postinstall /srv/www/wordpress-one/public_html/wp-content/themes/npmtest/node_modules/mozjpeg
> node lib/install.js
✔ mozjpeg pre-build test passed successfully
> [email protected] postinstall /srv/www/wordpress-one/public_html/wp-content/themes/npmtest/node_modules/optipng-bin
> node lib/install.js
✔ optipng pre-build test passed successfully
npm WARN saveError ENOENT: no such file or directory, open '/srv/www/wordpress-one/public_html/wp-content/themes/npmtest/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN enoent ENOENT: no such file or directory, open '/srv/www/wordpress-one/public_html/wp-content/themes/npmtest/package.json'
npm WARN [email protected] requires a peer of @popperjs/core@^2.10.1 but none is installed. You must install peer dependencies yourself.
npm WARN npmtest No description
npm WARN npmtest No repository field.
npm WARN npmtest No README data
npm WARN npmtest No license field.
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
added 901 packages from 382 contributors and audited 903 packages in 80.225s
62 packages are looking for funding
run `npm fund` for details
found 8 vulnerabilities (2 low, 2 moderate, 4 high)
run `npm audit fix` to fix them, or `npm audit` for details
╭───────────────────────────────────────────────────────────────╮
│ │
│ New major version of npm available! 6.14.10 → 7.5.2 │
│ Changelog: https://github.com/npm/cli/releases/tag/v7.5.2 │
│ Run npm install -g npm to update! │
│ │
╰───────────────────────────────────────────────────────────────╯
vagrant@vvv:/srv/www/wordpress-one/public_html/wp-content/themes/npmtest$
|
Node |
If it's working fine on your end, I'm not sure what to think at this point. I feel like I'm going to have to just find a workaround. |
Did you restart your machine? And have you checked the system preferences
security panel for new permission checks? virtualbox needs root space
kernel extensions it needs them removed and a hard restart, as well as
various prompts to allow it to do these things or it will say it failed.
I’d recommend looking up instructions and following them meticulously in
the exact order and actions suggested
…On Fri, 1 Oct 2021 at 21:38, columbian-chris ***@***.***> wrote:
If it's working fine on your end, I'm not sure what to think at this
point. I feel like I'm going to have to just find a workaround.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2529 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAOLZY4UCSAP56BKYMINJTUEYL5VANCNFSM5FC7235Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I will have to try downgrading virtualbox again when I get a chance with deeper instructions to ensure I'm completely clearing out everything. Today, I can get a fresh Example bunch of hidden files left behind:
When |
can you try installing the As an aside, have you tried running it on the host instead? It's great having node inside the VM particularly for running node projects, but watchers always run best on the host. VMs introduce micro-caches that sometimes miss file update events, and other tech such as docker can trigger heavy CPU trying to make the opposite tradeoff. It also makes IDE/editor integration much easier |
I was having the same issue, and I was refusing to try this so I was already resigned to run the I decide to downgrade the Before
After
|
It can happen even if VVV is operating perfectly with no bugs, or if there is no VVV at all. It's a general npm issue, not a VVV issue. The most effective solution is usually @alxbarron you may find the |
I'd also suggest minimum versions in "engines": {
"node": ">=14.17.0",
"npm": ">=7.18.0"
}, It's not a good idea to mix major versions of |
I have tried everything I could find and nothing will fix my problem. I cannot for the life of me get this npm install or update error to resolve.
It is not specific to this package. Trying different things throws the same error and gets caught up on a different package after I try different things.
I have tried:
npm cache clean --force
)node_modules
directory and doing a freshnpm install
chmod
-ing 777 to everything in thenode_modules
dirpackage-lock.json
file and trying againnode_modules
created during attemtpsnpm rebuild
npm install --cache /tmp/empty-cache
npm cache verify
npm prune
npm update --no-bin-links
...nothing seems to work. Any suggestions?
Using:
MacOS 11.5.2
VVV 3.7.2
Vagrant 2.2.18
virtualbox 6.1.26
The text was updated successfully, but these errors were encountered: