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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jc174 created an issue. See original summary.

jc174’s picture

Title: Npm install fails on windows with DAMP » "npm install" fails on windows with DAMP
Huelfe’s picture

Same errors here.

jc174’s picture

FileSize
15.54 KB

I 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.

thanhdo1991’s picture

Find command is not working on window
I wrote one file delete.js and put in theme folder
Correct path is zen/STARTERKIT/delete.js
postinstall in package.json updated to run above js file by nodejs

JohnAlbin’s picture

Version: 7.x-6.4 » 7.x-6.x-dev