yiisoft / demo

Yii 3 demo application
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
316 stars 133 forks source link

Yiisoft\Assets\Exception\InvalidConfigException The sourcePath to be published does not exist: C:\wamp64\www\demo\blog/node_modules/bootstrap/dist #600

Closed rossaddison closed 11 months ago

rossaddison commented 11 months ago

What steps will reproduce the problem? A new installation of demo

What is the expected result? Smooth run

What do you get instead? Above error

Additional info

Q A
Version 1.0.?
PHP version 8.2.1
Operating system Windows 10
rossaddison commented 11 months ago

The bootstrap node modules are missing.

vjik commented 11 months ago

Run docker-compose run php npm update.

rossaddison commented 11 months ago

For WAMP:

Installing npm_modules folder containing bootstrap as mentioned in package.json

Step 1: Download node.js at https://nodejs.org/en/download Step 2: Ensure C:\ProgramFiles\nodejs is in environment variable path. Search ... edit the system environment variables Step 3: Run npm i in c:\wamp64\demo\blog folder.