Closed JasonWeakley closed 3 years ago
So I have updated node to v14.15.3, and npm to 6.14.9 and I am unable to install autoprfixer and other packages listed in the README.
vagrant@drupalvm:/var/www/drupalvm/drupal$ npm install gulp
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
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 fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN enoent ENOENT: no such file or directory, open '/var/www/drupalvm/drupal/package.json'
npm WARN drupal No description
npm WARN drupal No repository field.
npm WARN drupal No README data
npm WARN drupal No license field.
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /var/www/drupalvm/drupal/node_modules/array-initial/node_modules/is-number/package.json.1426398553
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/var/www/drupalvm/drupal/node_modules/array-initial/node_modules/is-number/package.json.1426398553'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/.npm-cache/_logs/2020-12-28T17_42_20_083Z-debug.log
With some help I discovered a way around by simply copying and pasting the USWDS assets into an assets/ directory of the subdirectory. Then made a call to the assets/css/uswds.css file in the libraries.yml of the subtheme. But the ability to get npm and packages listed in the requirements here is broken.
I am trying to get the npm packages installed, but I am unable to. Has anyone successfully built a VirtualBox VM with Drupal 9, and gotten these packages installed?
Current errors look like this: