Using Acquia DAMP on Windows 7, 64 bit. I was able to reproduce this a second time.
The relevant errors from the command console are attached ("zen npm issue cli errors.txt").
The issue seems to come from this line in package.json:
find node_modules/ -name '*.info' -type f -delete
It appears that there are too many directories for Windows to handle for the find command.
After the attempted "npm install", the website also throws errors on every page when the theme is enabled. When I switch to a non-zen theme, some admin pages still show the error but the user-facing parts of the site appear clean. Site errors attached ("zen npm issue web errors.txt").
Apologies - I don't have the npm-debug.log file.
Comment | File | Size | Author |
---|---|---|---|
#5 | delete.js.txt | 411 bytes | thanhdo1991 |
#5 | clean-npm-info-files-2766643.patch | 700 bytes | thanhdo1991 |
#4 | web errors second try.txt | 15.54 KB | jc174 |
zen npm issue web errors.txt | 3.89 KB | jc174 | |
zen npm issue cli errors.txt | 2.21 KB | jc174 |
Comments
Comment #2
jc174 CreditAttribution: jc174 commentedComment #3
Huelfe CreditAttribution: Huelfe commentedSame errors here.
Comment #4
jc174 CreditAttribution: jc174 commentedI tried doing this again on a new subtheme, but before running "npm install" I deleted this line from package.json:
find node_modules/ -name '*.info' -type f -delete
The npm install completed with no errors. Next I manually deleted the .info files in the node_modules directory (there were only two). However, there were still errors on the site.
If anyone is reviewing the web site errors I posted with original post (zen npm issue web errors.txt), search that file for ",sites" (including the comma). Not sure how that is getting added to the path. Also note the "number-is-nan" in several paths.
On this second attempt, the web errors are slightly different in that "number-is-nan" does not appear. Attached.
Comment #5
thanhdo1991 CreditAttribution: thanhdo1991 commentedFind
command is not working on windowI wrote one file
delete.js
and put in theme folderCorrect path is
zen/STARTERKIT/delete.js
postinstall in package.json updated to run above js file by nodejs
Comment #6
JohnAlbin