uswds / uswds-gulp

A simple Gulp 4.0 workflow for transforming USWDS Sass into browser-readable CSS.
Other
35 stars 17 forks source link

Unable to Add Required NPM Dependencies #33

Closed amstaker closed 2 years ago

amstaker commented 3 years ago

npm install autoprefixer gulp gulp-replace sass gulp-sass gulp-sourcemaps gulp-rename gulp-svg-sprite gulp-postcss postcss postcss-csso uswds uswds-gulp@github:uswds/uswds-gulp --save-dev I forced the npm cache clear and then attempted the install again and I was able to replicate the problem.

Here was the output:

Aarons-MBP:uswds_iwd amstaker$ npm install autoprefixer gulp gulp-replace sass gulp-sass gulp-sourcemaps gulp-rename gulp-svg-sprite gulp-postcss postcss postcss-csso uswds uswds-gulp@github:uswds/uswds-gulp --save-dev
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated xmldom@0.1.27: Deprecated due to CVE-2021-21366 resolved in 0.5.0
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 deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated phantomjs-prebuilt@2.1.16: this package is now deprecated
npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! Cannot convert undefined or null to object

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/amstaker/.npm/_logs/2021-04-02T19_33_22_365Z-debug.log

I have attached a copy of the full log as well here.

2021-04-02T19_39_30_400Z-debug.log

npm install autoprefixer gulp gulp-replace sass gulp-sass gulp-sourcemaps gulp-rename gulp-svg-sprite gulp-postcss postcss postcss-csso uswds --cache /tmp/empty-cache

Also did not work. If you do run

npm install autoprefixer gulp gulp-replace sass gulp-sass gulp-sourcemaps gulp-rename gulp-svg-sprite gulp-postcss postcss postcss-csso uswds --save-dev

NPM works fine. I believe this is related to the package:

npm install uswds-gulp@github:uswds/uswds-gulp

And perhaps a related issue. I tried a variety of npm install permutations and none of these were successful:

npm install git+ssh://git@github.com:uswds/uswds-gulp.git
npm install git+https://github.com/uswds/uswds-gulp.git
npm install git://github.com/uswds/uswds-gulp

In theory these should have worked.

amstaker commented 3 years ago

Also to add additional clarity I also made sure I'm setup correctly for SSH with Git on my local and all my certificates are installed and I can verify a secure https and/or ssh connection with github.

amstaker commented 3 years ago

FYI the log indicated above was a rerun but output is identical. The most important line to review is:

npm ERR! Cannot convert undefined or null to object

amstaker commented 3 years ago

@mejiaj - thanks for your help with this, really appreciate the support!

mejiaj commented 3 years ago

We haven't had luck reproducing this issue.

Tested in: node 14.15.3, 14.16.1 npm 6.14.9, 6.14.12

JingCTyagi commented 3 years ago

I ran into similar issue with node v16.6.2 and npm 7.20.5. needs to update uswds-gulp dependency gulp-sass from version 4.1.0 to version 5.0.0

brunerae commented 2 years ago

@thisisdano is going to add instructions for closeout

mejiaj commented 2 years ago

Able to confirm problems installing with node v16. Submitted a PR #43 updating dependencies that might help.

thisisdano commented 2 years ago

Closing as stale and possibly fixed