Error with ' Building for production '

Hi all,
I am having issues with my command terminal when I go to build the website using ’ parcel build index.html '.
This is what it is returning,

matthewhaworth@Matthews-MacBook-Air moshified % parcel build index.html
:rotating_light: /Users/matthewhaworth/Documents/Software Development/WEB DESIGN/MOSHIFIED/css/normalise.css:undefined:undefined: Cannot find module ‘chalk’
Require stack:

  • /Users/matthewhaworth/Documents/Software Development/WEB DESIGN/MOSHIFIED/node_modules/postcss/lib/css-syntax-error.js
  • /Users/matthewhaworth/Documents/Software Development/WEB DESIGN/MOSHIFIED/node_modules/postcss/lib/node.js
  • /Users/matthewhaworth/Documents/Software Development/WEB DESIGN/MOSHIFIED/node_modules/postcss/lib/declaration.js
  • /Users/matthewhaworth/Documents/Software Development/WEB DESIGN/MOSHIFIED/node_modules/postcss/lib/postcss.js
  • /Users/matthewhaworth/Documents/Software Development/WEB DESIGN/MOSHIFIED/node_modules/cssnano/dist/index.js
  • /usr/local/lib/node_modules/parcel-bundler/src/utils/localRequire.js
  • /usr/local/lib/node_modules/parcel-bundler/src/Bundler.js
  • /usr/local/lib/node_modules/parcel-bundler/index.js
  • /usr/local/lib/node_modules/parcel-bundler/src/cli.js
  • /usr/local/lib/node_modules/parcel-bundler/bin/cli.js

make sure that you run npm i -g parcel bundler@1.12.4 or the same version that you did before locally…I had the same error…anyway when you go to run parcel build command you will find another error with logo.svg or tree.render function…you can workaround with the option --no-minify but then you wont get optimized html,css files (no spaces, no return,etc). ex: parcel build index.html --no-minify

Hi Jorge, I appreciate the help! So i tried installing parcel globally and i still got the same message but i managed to build it all using the “parcel build index.html --no-minify”. Thanks for the help, maybe it will work on my next project …hopefully lol!
Thanks again
.