Closed benjaminv closed 3 years ago
Can you show me the steps so I can replicate it?
Can you show me the steps so I can replicate it?
Thanks for following up @jsdecena. I am running on a local dev environment. PHP 7.4.12 (cli) (built: Nov 30 2020 13:28:43) ( NTS ) MYSQL 5.7.32 - MySQL Community Server (GPL) Node --version 16.5 NPM --version 7.19.1
The server stack is working well - how do I know this? I terminated the npm install
process with a residual node_modules
folder, then built with npm run dev
, everything runs okay
.
Please follow these to replicate:
% git clone git@github.com:jsdecena/laracom.git
% cd laracom
% mv project/* ~/MY_PROJECT_PATH/laracom
% rm .github nginx/* php/* project/* .travis.yml Dockfile docker-compose.yml
% composer install
# completed without issue
% php artisan migrate --seed
% php artisan storage:link
% npm install
# runs into error as shown in above
which included,
"node-sass": "^6.0"
in package.json
, confirmed node-sass
installed as with ver 6.0Terminal
under Rosetta 2
with various versions of node-sass
, same error.npm install
with a residual node_modules
folderWithout a break (Ctrl + C
), the dependencies' installation rolls back and node_modules
folder is removed automatically.
run npm run dev
I did have got the built successfully for once - tried replication without success
% php artisan serve
Things worked okay this way but apparently there were something not correctly built during the npm install
.
Appreciate your time.
@jsdecena Hi I now have figured out that the hanging of Terminal for a few minutes as well running into error were due to incompatibility between newer version of node
again node-sass
.
I did have tried forcing the node-sass
to be version ^6.0
and that did not work for me.
My final solution was to downgrade my brew/node from ver 16 down to LTS ver 14 - I was mis-led by node-sass
's official announcement of compatibility to node@16
, which did not work in this case.
For anyone did not know how to down grade node
, this is the brew
way on Apple Silicon
- https://github.com/npm/cli/issues/2306#issuecomment-882215868
this is now closed as I have found the cause and fix.
It seemed stuck in on installing admin-lte for a while then threw big amount of errors.
reify:admin-lte: timing reifyNode:node_modules/rxjs Completed in 8908ms
log reads
I am using Big Sur on a MBA 2020 M1. Any comment will be appreciated.