seanmorris / php-wasm

PHP in Browser, powered by WebAssembly.
https://seanmorris.github.io/php-wasm/
Apache License 2.0
606 stars 32 forks source link

cp: cannot stat 'node_modules/php-wasm/php-web-drupal.*': No such file or directory #10

Closed kenorb closed 2 years ago

kenorb commented 2 years ago

The following error happens in docs-source/ when running npm install:

docs-source$ npm install

> php-wasm-doc@0.0.0 postinstall
> cp -rfv node_modules/php-wasm/php-web.* app/assets/; cp -rfv node_modules/php-wasm/php-web-drupal.* app/assets/

'node_modules/php-wasm/php-web.data' -> 'app/assets/php-web.data'
'node_modules/php-wasm/php-web.js' -> 'app/assets/php-web.js'
'node_modules/php-wasm/php-web.wasm' -> 'app/assets/php-web.wasm'
cp: cannot stat 'node_modules/php-wasm/php-web-drupal.*': No such file or directory
npm ERR! code 1
npm ERR! path docs-source
npm ERR! command failed
npm ERR! command sh -c cp -rfv node_modules/php-wasm/php-web.* app/assets/; cp -rfv node_modules/php-wasm/php-web-drupal.* app/assets/

npm ERR! A complete log of this run can be found in:
npm ERR!     ~/.npm/_logs/2022-02-26T23_36_11_739Z-debug.log

Maybe it's because php-web-drupal.* files aren't included in the package.

Upgrading to 0.0.4-b didn't help.

seanmorris commented 2 years ago

I deleted my previous comment as I'm a little confused. The docs-source/ directory contains an application that is served through github pages (built to docs/) as an example useage of the project.

Are you trying to build that application? Or would you like to build the main project instead?

kenorb commented 2 years ago

Are you trying to build that application?

Yes, I've tried to build the application which was on GitHub Pages to reproduce it. I've noticed your recent changes, and it now npm install dependencies correctly, thanks.