# New to Netlify, need help deploying my website, info attached

**URL:** <https://answers.netlify.com/t/new-to-netlify-need-help-deploying-my-website-info-attached/77056>\
**Category:** Support\
**Tags:** create-react-app, netlify-newbie, building, deployment\
**Created:** [October 10, 2022, 4:26am UTC](https://answers.netlify.com/t/new-to-netlify-need-help-deploying-my-website-info-attached/77056 "2022-10-10T04:26:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shivermotion](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/shivermotion/32/41989_2.png) [@shivermotion](https://answers.netlify.com/u/shivermotion)\
**Post date:** [October 10, 2022, 4:26am UTC](https://answers.netlify.com/t/new-to-netlify-need-help-deploying-my-website-info-attached/77056/1 "2022-10-10T04:26:13Z")

</div>

netlify name: [https://fightertoolkit.netlify.app](https://fightertoolkit.netlify.app)  
custom domain: [www.fightertoolkit.com](http://www.fightertoolkit.com)  
New to Netlify and trying to deploy my site. Current errors.

10:55:01 PM: Build ready to start  
10:55:04 PM: build-image version: 9289b698a503f132b265bd089ab40ce1d6f9e65e (focal)  
10:55:04 PM: build-image tag: v4.12.0  
10:55:04 PM: buildbot version: c87074660cd9a4568c0ac759bc083987e94204b3  
10:55:04 PM: Fetching cached dependencies  
10:55:04 PM: Failed to fetch cache, continuing with build  
10:55:04 PM: Starting to prepare the repo for build  
10:55:04 PM: No cached dependencies found. Cloning fresh repo  
10:55:04 PM: git clone [https://]github.[com]/shivermotion/fighter-tool-kit  
10:55:05 PM: Preparing Git Reference refs/heads/master  
10:55:05 PM: Parsing package.json dependencies  
10:55:06 PM: Starting build script  
10:55:06 PM: Installing dependencies  
10:55:06 PM: Python version set to 2.7  
10:55:06 PM: v16.17.1 is already installed.  
10:55:07 PM: Now using node v16.17.1 (npm v8.15.0)  
10:55:07 PM: Started restoring cached build plugins  
10:55:07 PM: Finished restoring cached build plugins  
10:55:07 PM: Attempting ruby version 2.7.2, read from environment  
10:55:07 PM: Using ruby version 2.7.2  
10:55:07 PM: Using PHP version 8.0  
10:55:08 PM: No npm workspaces detected  
10:55:08 PM: Started restoring cached node modules  
10:55:08 PM: Finished restoring cached node modules  
10:55:08 PM: Installing NPM modules using NPM version 8.15.0  
10:55:08 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special  
10:55:08 PM: npm WARN config location in the cache, and they are managed by  
10:55:08 PM: npm WARN config  
10:55:08 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special  
10:55:08 PM: npm WARN config location in the cache, and they are managed by  
10:55:08 PM: npm WARN config  
10:55:13 PM: npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN:  
10:55:16 PM: npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.  
10:55:25 PM: added 1655 packages, and audited 1656 packages in 17s  
10:55:25 PM: 220 packages are looking for funding  
10:55:25 PM: run `npm fund` for details  
10:55:25 PM: 6 high severity vulnerabilities  
10:55:25 PM: To address all issues (including breaking changes), run:  
10:55:25 PM: npm audit fix --force  
10:55:25 PM: Run `npm audit` for details.  
10:55:25 PM: NPM modules installed  
10:55:26 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special  
10:55:26 PM: npm WARN config location in the cache, and they are managed by  
10:55:26 PM: npm WARN config  
10:55:26 PM: Started restoring cached go cache  
10:55:26 PM: Finished restoring cached go cache  
10:55:26 PM: Installing Go version 1.17 (requested 1.17)  
10:55:30 PM: unset GOOS;  
10:55:30 PM: unset GOARCH;  
10:55:30 PM: export GOROOT=‘/opt/buildhome/.gimme/versions/go1.17.linux.amd64’;  
10:55:30 PM: export PATH=“/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}”;  
10:55:30 PM: go version \>&2;  
10:55:30 PM: export GIMME\_ENV=“/opt/buildhome/.gimme/env/go1.17.linux.amd64.env”  
10:55:30 PM: go version go1.17 linux/amd64  
10:55:30 PM: Installing missing commands  
10:55:30 PM: Verify run directory  
10:55:31 PM: ​  
10:55:31 PM: ────────────────────────────────────────────────────────────────  
10:55:31 PM: Netlify Build  
10:55:31 PM: ────────────────────────────────────────────────────────────────  
10:55:31 PM: ​  
10:55:31 PM: ❯ Version  
10:55:31 PM: @netlify/build 27.20.1  
10:55:31 PM: ​  
10:55:31 PM: ❯ Flags  
10:55:31 PM: baseRelDir: true  
10:55:31 PM: buildId: 63439795ccdf941ea93419db  
10:55:31 PM: deployId: 63439795ccdf941ea93419dd  
10:55:31 PM: ​  
10:55:31 PM: ❯ Current directory  
10:55:31 PM: /opt/build/repo  
10:55:31 PM: ​  
10:55:31 PM: ❯ Config file  
10:55:31 PM: No config file was defined: using default values.  
10:55:31 PM: ​  
10:55:31 PM: ❯ Context  
10:55:31 PM: production  
10:55:31 PM: ​  
10:55:31 PM: ────────────────────────────────────────────────────────────────  
10:55:31 PM: 1. Build command from Netlify app  
10:55:31 PM: ────────────────────────────────────────────────────────────────  
10:55:31 PM: ​  
10:55:31 PM: $ npm run build  
10:55:31 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special  
10:55:31 PM: npm WARN config location in the cache, and they are managed by  
10:55:31 PM: npm WARN config  
10:55:31 PM: \> fighter-tool-kit@0.1.0 build  
10:55:31 PM: \> react-scripts build  
10:55:32 PM: Creating an optimized production build…  
10:56:29 PM: Failed to compile.  
10:56:29 PM:  
10:56:29 PM: Cannot find module ‘sass’  
10:56:29 PM: Require stack:  
10:56:29 PM: - /opt/build/repo/node\_modules/sass-loader/dist/utils.js  
10:56:29 PM: - /opt/build/repo/node\_modules/sass-loader/dist/index.js  
10:56:29 PM: - /opt/build/repo/node\_modules/sass-loader/dist/cjs.js  
10:56:29 PM: - /opt/build/repo/node\_modules/loader-runner/lib/loadLoader.js  
10:56:29 PM: - /opt/build/repo/node\_modules/loader-runner/lib/LoaderRunner.js  
10:56:29 PM: - /opt/build/repo/node\_modules/webpack/lib/NormalModule.js  
10:56:29 PM: - /opt/build/repo/node\_modules/webpack-manifest-plugin/dist/index.js  
10:56:29 PM: - /opt/build/repo/node\_modules/react-scripts/config/webpack.config.js  
10:56:29 PM: - /opt/build/repo/node\_modules/react-scripts/scripts/build.js  
10:56:29 PM: ​  
10:56:29 PM: ────────────────────────────────────────────────────────────────  
10:56:29 PM: “build.command” failed  
10:56:29 PM: ────────────────────────────────────────────────────────────────  
10:56:29 PM: ​  
10:56:29 PM: Error message  
10:56:29 PM: Command failed with exit code 1: npm run build  
10:56:29 PM: ​  
10:56:29 PM: Error location  
10:56:29 PM: In Build command from Netlify app:  
10:56:29 PM: npm run build  
10:56:29 PM: ​  
10:56:29 PM: Resolved config  
10:56:29 PM: build:  
10:56:29 PM: command: npm run build  
10:56:29 PM: commandOrigin: ui  
10:56:29 PM: environment:  
10:56:29 PM: - CI  
10:56:29 PM: - NPM\_FLAGS  
10:56:29 PM: publish: /opt/build/repo/build  
10:56:29 PM: publishOrigin: ui  
10:56:30 PM: Caching artifacts  
10:56:30 PM: Started saving node modules  
10:56:30 PM: Finished saving node modules  
10:56:30 PM: Started saving build plugins  
10:56:30 PM: Finished saving build plugins  
10:56:30 PM: Started saving pip cache  
10:56:30 PM: Finished saving pip cache  
10:56:30 PM: Started saving emacs cask dependencies  
10:56:30 PM: Finished saving emacs cask dependencies  
10:56:30 PM: Started saving maven dependencies  
10:56:30 PM: Finished saving maven dependencies  
10:56:30 PM: Started saving boot dependencies  
10:56:30 PM: Finished saving boot dependencies  
10:56:30 PM: Started saving rust rustup cache  
10:56:30 PM: Finished saving rust rustup cache  
10:56:30 PM: Started saving go dependencies  
10:56:30 PM: Finished saving go dependencies  
10:56:30 PM: Build failed due to a user error: Build script returned non-zero exit code: 2  
10:56:30 PM: Creating deploy upload records  
10:56:30 PM: Failing build: Failed to build site  
10:56:30 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2  
10:56:31 PM: Finished processing build request in 1m26.82706808s

current env variables  
 ![env-settings-netlify](https://global.discourse-cdn.com/netlify/original/3X/0/1/018511e977fa3265243823a781edcbdf6086b548.png)

---

<div class="post-metadata">

**Author:** ![jszynal](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/jszynal/32/42005_2.png) [@jszynal](https://answers.netlify.com/u/jszynal)\
**Post date:** [October 11, 2022, 2:19am UTC](https://answers.netlify.com/t/new-to-netlify-need-help-deploying-my-website-info-attached/77056/2 "2022-10-11T02:19:15Z")

</div>

Just first glance here Shiver but do you have sass listed in your package.json as a dependency?

```auto
10:56:29 PM: Cannot find module ‘sass’

```

---

<div class="post-metadata">

**Author:** ![shivermotion](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/shivermotion/32/41989_2.png) [@shivermotion](https://answers.netlify.com/u/shivermotion)\
**Post date:** [October 11, 2022, 4:07am UTC](https://answers.netlify.com/t/new-to-netlify-need-help-deploying-my-website-info-attached/77056/3 "2022-10-11T04:07:41Z")

</div>

SOLVED : site is now live and showing. There multiple things that needed to be adjusted including

1. having homepage, start url, and my router paths all matching.
2. having crossorigin=“use-credentials” and href=“manifest.json” included in my manifest link in public index header.
3. making sure my modules were installed on master.  
4.setting env variables on netflify to NPM\_Flags --dev-peer-legacy.

Update: My problem was I needed to set NPM\_FLAGS --dev-peer-legacy. Site now deploys and goes live, but is blank…

Hey @jszynal , here is my current sass  
see pic attached:

 ![sass](https://global.discourse-cdn.com/netlify/original/3X/2/e/2e0b661f32558acadce4389c4ba477b7db12bbfc.png)

---

<div class="post-metadata">

**Author:** ![hillary](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hillary/32/21132_2.png) [@hillary](https://answers.netlify.com/u/hillary)\
**Post date:** [October 11, 2022, 2:27pm UTC](https://answers.netlify.com/t/new-to-netlify-need-help-deploying-my-website-info-attached/77056/4 "2022-10-11T14:27:10Z")

</div>

Thanks for coming back and sharing your solution! This will help future forums members who encounter something similar.

---

<div class="post-metadata">

**Author:** ![jszynal](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/jszynal/32/42005_2.png) [@jszynal](https://answers.netlify.com/u/jszynal)\
**Post date:** [October 11, 2022, 4:07pm UTC](https://answers.netlify.com/t/new-to-netlify-need-help-deploying-my-website-info-attached/77056/5 "2022-10-11T16:07:55Z")

</div>

@shivermotion your screenshot shows the package-lock.json with the sass references in there but those may be peer dependencies. Can you confirm you’ve got sass listed in your package.json file as a dependency?
