I am getting 'Build script returned non-zero exit code: 1' when netlify is trying to build the pages of my site - deployment
I am getting
Build script returned non-zero exit code: 1
when netlify is trying to build the pages of my site.
I have sieved through my components and as far as I can see all my paths are correct.
It seems to be an issue with my SEO component. I removed Yarn from this project but I don't think that is the issue here. It builds fine with gatsby build locally.
Any Ideas?
Build Log:
4:29:17 AM: Build ready to start
4:29:20 AM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
4:29:20 AM: build-image tag: v3.3.2
4:29:20 AM: buildbot version: a2bab682ae0761baa4d123ebd00c57be933655dc
4:29:21 AM: Fetching cached dependencies
4:29:21 AM: Failed to fetch cache, continuing with build
4:29:21 AM: Starting to prepare the repo for build
4:29:21 AM: No cached dependencies found. Cloning fresh repo
4:29:21 AM: git clone https://github.com/AaronDukeUK/gatsby_shopify_template
4:29:22 AM: Preparing Git Reference refs/heads/master
4:29:23 AM: Starting build script
4:29:23 AM: Installing dependencies
4:29:24 AM: Downloading and installing node v10.17.0...
4:29:24 AM: Downloading https://nodejs.org/dist/v10.17.0/node-v10.17.0-linux-x64.tar.xz...
4:29:25 AM:
########
4:29:25 AM: 12.2%
4:29:25 AM:
###########################################################
4:29:25 AM: #### 88.2%
4:29:25 AM:
#######################################################################
4:29:25 AM: # 100.0%
4:29:25 AM: Computing checksum with sha256sum
4:29:25 AM: Checksums matched!
4:29:27 AM: Now using node v10.17.0 (npm v6.11.3)
4:29:28 AM: Attempting ruby version 2.6.2, read from environment
4:29:29 AM: Using ruby version 2.6.2
4:29:29 AM: Using PHP version 5.6
4:29:29 AM: Started restoring cached node modules
4:29:29 AM: Finished restoring cached node modules
4:29:29 AM: Installing NPM modules using NPM version 6.11.3
4:30:04 AM: > sharp#0.23.1 install /opt/build/repo/node_modules/sharp
4:30:04 AM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
4:30:04 AM: info
4:30:04 AM: sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.8.1/libvips-8.8.1-linux-x64.tar.gz
4:30:08 AM: > node-sass#4.13.0 install /opt/build/repo/node_modules/node-sass
4:30:08 AM: > node scripts/install.js
4:30:09 AM: Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.0/linux-x64-64_binding.node
4:30:09 AM: Download complete
4:30:09 AM: Binary saved to /opt/build/repo/node_modules/node-sass/vendor/linux-x64-64/binding.node
4:30:09 AM: Caching binary to /opt/buildhome/.npm/node-sass/4.13.0/linux-x64-64_binding.node
4:30:09 AM: > core-js#2.6.10 postinstall /opt/build/repo/node_modules/core-js
4:30:09 AM: > node postinstall || echo "ignore"
4:30:10 AM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
4:30:10 AM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
4:30:10 AM: > https://opencollective.com/core-js
4:30:10 AM: > https://www.patreon.com/zloirock
4:30:10 AM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
4:30:10 AM: > gatsby-telemetry#1.1.33 postinstall /opt/build/repo/node_modules/gatsby-telemetry
4:30:10 AM: > node src/postinstall.js
4:30:10 AM: > cwebp-bin#5.1.0 postinstall /opt/build/repo/node_modules/cwebp-bin
4:30:10 AM: > node lib/install.js
4:30:11 AM: ✔ cwebp pre-build test passed successfully
4:30:11 AM: > mozjpeg#6.0.1 postinstall /opt/build/repo/node_modules/mozjpeg
4:30:11 AM: > node lib/install.js
4:30:11 AM: ✔ mozjpeg pre-build test passed successfully
4:30:11 AM: > pngquant-bin#5.0.2 postinstall /opt/build/repo/node_modules/pngquant-bin
4:30:11 AM: > node lib/install.js
4:30:12 AM: ✔ pngquant pre-build test passed successfully
4:30:12 AM: > gatsby-cli#2.8.5 postinstall /opt/build/repo/node_modules/gatsby-cli
4:30:12 AM: > node scripts/postinstall.js
4:30:12 AM: > gatsby#2.17.2 postinstall /opt/build/repo/node_modules/gatsby
4:30:12 AM: > node scripts/postinstall.js
4:30:12 AM: > node-sass#4.13.0 postinstall /opt/build/repo/node_modules/node-sass
4:30:12 AM: > node scripts/build.js
4:30:13 AM: Binary found at /opt/build/repo/node_modules/node-sass/vendor/linux-x64-64/binding.node
4:30:13 AM: Testing binary
4:30:13 AM: Binary is fine
4:30:16 AM: npm
4:30:16 AM: WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.9 (node_modules/fsevents):
4:30:16 AM: npm
4:30:16 AM: WARN
4:30:16 AM: notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
4:30:16 AM: npm WARN
4:30:16 AM: optional SKIPPING OPTIONAL DEPENDENCY: fsevents#2.1.1 (node_modules/chokidar/node_modules/fsevents):
4:30:16 AM: npm
4:30:16 AM: WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
4:30:16 AM: added 2010 packages from 981 contributors and audited 27617 packages in 45.18s
4:30:16 AM: found 0 vulnerabilities
4:30:16 AM: NPM modules installed
4:30:16 AM: Started restoring cached go cache
4:30:16 AM: Finished restoring cached go cache
4:30:16 AM: unset GOOS;
4:30:16 AM: unset GOARCH;
4:30:16 AM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
4:30:16 AM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
4:30:16 AM: go version >&2;
4:30:16 AM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
4:30:16 AM: go version go1.12 linux/amd64
4:30:16 AM: Installing missing commands
4:30:16 AM: Verify run directory
4:30:16 AM: Executing user command: gatsby build
4:30:19 AM: success open and validate gatsby-configs - 0.024s
4:30:20 AM: success load plugins - 0.803s
4:30:20 AM: success onPreInit - 0.003s
4:30:20 AM: success delete html and css files from previous builds - 0.015s
4:30:20 AM: success initialize cache - 0.009s
4:30:20 AM: success copy gatsby files - 0.047s
4:30:20 AM: success onPreBootstrap - 0.011s
4:30:20 AM: gatsby-source-shopify/dukedesign-gatsby-store starting to fetch data from Shopify
4:30:20 AM: gatsby-source-shopify/dukedesign-gatsby-store fetched and processed Collection nodes: 296.906ms
4:30:20 AM: gatsby-source-shopify/dukedesign-gatsby-store fetched and processed Blog nodes: 277.187ms
4:30:20 AM: gatsby-source-shopify/dukedesign-gatsby-store fetched and processed Page nodes: 286.665ms
4:30:20 AM: gatsby-source-shopify/dukedesign-gatsby-store fetched and processed ShopPolicy nodes: 298.187ms
4:30:20 AM: gatsby-source-shopify/dukedesign-gatsby-store fetched and processed Article nodes: 319.303ms
4:30:20 AM: success Downloading remote files - 0.268s - 10/10 37.31/s
4:30:20 AM: gatsby-source-shopify/dukedesign-gatsby-store fetched and processed Product nodes: 508.245ms
4:30:20 AM: gatsby-source-shopify/dukedesign-gatsby-store finished fetching data from Shopify: 503.316ms
4:30:20 AM: success source and transform nodes - 0.624s
4:30:21 AM: success building schema - 0.476s
4:30:21 AM: success createPages - 0.061s
4:30:21 AM: success createPagesStatefully - 0.073s
4:30:21 AM: success onPreExtractQueries - 0.003s
4:30:21 AM: success update schema - 0.034s
4:30:22 AM: success extract queries from components - 0.579s
4:30:22 AM: success write out requires - 0.004s
4:30:22 AM: success write out redirect data - 0.001s
4:30:22 AM: success Build manifest and related icons - 0.248s
4:30:22 AM: success onPostBootstrap - 0.264s
4:30:22 AM: ⠀
4:30:22 AM: info bootstrap finished - 5.940 s
4:30:22 AM: ⠀
4:31:09 AM: success Generating image thumbnails - 46.477s - 122/122 2.62/s
4:31:12 AM: failed Building production JavaScript and CSS bundles - 46.893s
4:31:12 AM: error Generating JavaScript bundles failed
4:31:12 AM: Can't resolve '../components/Seo' in '/opt/build/repo/src/pages'
4:31:12 AM: error Generating JavaScript bundles failed
4:31:12 AM: Can't resolve '../components/Seo' in '/opt/build/repo/src/pages'
4:31:13 AM: not finished run queries - 50.505s
4:31:13 AM: Skipping functions preparation step: no functions directory set
4:31:13 AM: Caching artifacts
4:31:13 AM: Started saving node modules
4:31:13 AM: Finished saving node modules
4:31:13 AM: Started saving pip cache
4:31:13 AM: Finished saving pip cache
4:31:13 AM: Started saving emacs cask dependencies
4:31:13 AM: Finished saving emacs cask dependencies
4:31:13 AM: Started saving maven dependencies
4:31:13 AM: Finished saving maven dependencies
4:31:13 AM: Started saving boot dependencies
4:31:13 AM: Finished saving boot dependencies
4:31:13 AM: Started saving go dependencies
4:31:13 AM: Finished saving go dependencies
4:31:16 AM: Error running command: Build script returned non-zero exit code: 1
4:31:16 AM: Failing build: Failed to build site
4:31:16 AM: failed during stage 'building site': Build script returned non-zero exit code: 1
4:31:16 AM: Finished processing build request in 1m55.957510427s
Related
parcel build error: "extendDefaultPlugins"
i'm trying to build project of mine. I new to using parcel. To build process i have this command line "build": "parcel build index.html --dist-dir ./dist" I get this error. console: "extendDefaultPlugins" utility is deprecated. Use "preset-default" plugin with overrides instead. For example: { name: 'preset-default', params: { overrides: { // customize plugin options convertShapeToPath: { convertArcs: true }, // disable plugins convertPathData: false } } } √ Built in 4.24s dist\index.html 3.74 KB 879ms dist\favicon.9a1bb8f5.png 13.3 KB 24ms dist\logo.9272a069.png 92.31 KB 49ms dist\icons.9801e6f1.svg 8.81 KB 871ms dist\index.20fbdb0c.css 9.96 KB 2.00s dist\index.4a83a35e.js 125.64 KB 1.68s dist\icons.9801e6f1.svg 8.81 KB 871ms [Error: Error opening directory] npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! forkify#1.0.0 build: `parcel build index.html --dist-dir ./dist` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the forkify#1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: I can't find a solution. Please help me.
This was an issue in parcel 2.0.0-rc.0, that is fixed in the now-released version 2.0.0. It had no functional impact - it was just a warning that the way in which the #parcel/optimizer-htmlnano configured svgo should eventually be updated to use a new technique.
Deploying Gatsby site to Netlify fails, works fine locally - Problem with StaticImage?
I can't figure out why my Gatsby site fails to deploy on Netlify. Here are the Netlify deploy logs: 12:11:29 AM: Build ready to start 12:11:31 AM: build-image version: d03efc9bc7b65d83035572f6dba444f85407dd60 12:11:31 AM: build-image tag: v3.7.5 12:11:31 AM: buildbot version: 6dd06f64b3b0b51f07678bbd16c7e5a748905aed 12:11:31 AM: Building without cache 12:11:31 AM: Starting to prepare the repo for build 12:11:32 AM: No cached dependencies found. Cloning fresh repo 12:11:32 AM: git clone https://github.com/Boomstam/FAGQ 12:11:33 AM: Preparing Git Reference refs/heads/master 12:11:33 AM: Parsing package.json dependencies 12:11:35 AM: Starting build script 12:11:35 AM: Installing dependencies 12:11:35 AM: Python version set to 2.7 12:11:36 AM: v12.18.0 is already installed. 12:11:36 AM: Now using node v12.18.0 (npm v6.14.4) 12:11:37 AM: Started restoring cached build plugins 12:11:37 AM: Finished restoring cached build plugins 12:11:37 AM: Attempting ruby version 2.7.1, read from environment 12:11:38 AM: Using ruby version 2.7.1 12:11:38 AM: Using PHP version 5.6 12:11:38 AM: Started restoring cached node modules 12:11:38 AM: Finished restoring cached node modules 12:11:38 AM: Installing NPM modules using NPM version 6.14.4 12:12:22 AM: npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion#1, but package-lock.json was generated for lockfileVersion#2. I'll try to do my best with it! 12:12:22 AM: > sharp#0.28.1 install /opt/build/repo/node_modules/sharp 12:12:22 AM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy) 12:12:24 AM: sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.10.6/libvips-8.10.6-linux-x64.tar.br 12:12:26 AM: > core-js#3.11.2 postinstall /opt/build/repo/node_modules/core-js 12:12:26 AM: > node -e "try{require('./postinstall')}catch(e){}" 12:12:26 AM: > core-js-pure#3.11.2 postinstall /opt/build/repo/node_modules/core-js-pure 12:12:26 AM: > node -e "try{require('./postinstall')}catch(e){}" 12:12:27 AM: > gatsby-telemetry#2.4.1 postinstall /opt/build/repo/node_modules/gatsby-telemetry 12:12:27 AM: > node src/postinstall.js || true 12:12:27 AM: > mozjpeg#7.0.0 postinstall /opt/build/repo/node_modules/mozjpeg 12:12:27 AM: > node lib/install.js 12:12:28 AM: ✔ mozjpeg pre-build test passed successfully 12:12:28 AM: > pngquant-bin#6.0.0 postinstall /opt/build/repo/node_modules/pngquant-bin 12:12:28 AM: > node lib/install.js 12:12:28 AM: ✔ pngquant pre-build test passed successfully 12:12:28 AM: > gatsby-cli#3.4.1 postinstall /opt/build/repo/node_modules/gatsby/node_modules/gatsby-cli 12:12:28 AM: > node scripts/postinstall.js 12:12:28 AM: > gatsby#3.4.1 postinstall /opt/build/repo/node_modules/gatsby 12:12:28 AM: > node scripts/postinstall.js 12:12:31 AM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents): 12:12:31 AM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 12:12:31 AM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#2.3.2 (node_modules/fsevents): 12:12:31 AM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 12:12:31 AM: added 2285 packages from 1062 contributors and audited 2288 packages in 51.769s 12:12:33 AM: 213 packages are looking for funding 12:12:33 AM: run `npm fund` for details 12:12:33 AM: found 1 high severity vulnerability 12:12:33 AM: run `npm audit fix` to fix them, or `npm audit` for details 12:12:33 AM: NPM modules installed 12:12:33 AM: Started restoring cached go cache 12:12:33 AM: Finished restoring cached go cache 12:12:34 AM: go version go1.14.4 linux/amd64 12:12:34 AM: go version go1.14.4 linux/amd64 12:12:34 AM: Installing missing commands 12:12:34 AM: Verify run directory 12:12:35 AM: 12:12:35 AM: ──────────────────────────────────────────────────────────────── 12:12:35 AM: Netlify Build 12:12:35 AM: ──────────────────────────────────────────────────────────────── 12:12:35 AM: 12:12:35 AM: ❯ Version 12:12:35 AM: #netlify/build 11.10.0 12:12:35 AM: 12:12:35 AM: ❯ Flags 12:12:35 AM: deployId: 60985e1180c8566fcaaa04c1 12:12:35 AM: 12:12:35 AM: ❯ Current directory 12:12:35 AM: /opt/build/repo 12:12:35 AM: 12:12:35 AM: ❯ Config file 12:12:35 AM: No config file was defined: using default values. 12:12:35 AM: 12:12:35 AM: ❯ Context 12:12:35 AM: production 12:12:35 AM: 12:12:35 AM: ──────────────────────────────────────────────────────────────── 12:12:35 AM: 1. Build command from Netlify app 12:12:35 AM: ──────────────────────────────────────────────────────────────── 12:12:35 AM: 12:12:35 AM: $ gatsby build 12:12:39 AM: success open and validate gatsby-configs - 0.013s 12:12:39 AM: success load plugins - 0.325s 12:12:39 AM: success onPreInit - 0.029s 12:12:39 AM: success initialize cache - 0.006s 12:12:39 AM: success copy gatsby files - 0.060s 12:12:39 AM: success onPreBootstrap - 0.016s 12:12:39 AM: success createSchemaCustomization - 0.001s 12:12:39 AM: success Checking for changed pages - 0.000s 12:12:39 AM: success source and transform nodes - 0.117s 12:12:40 AM: success building schema - 0.397s 12:12:40 AM: success createPages - 0.000s 12:12:40 AM: success createPagesStatefully - 0.057s 12:12:40 AM: info Total nodes: 37, SitePage nodes: 2 (use --verbose for breakdown) 12:12:40 AM: success Checking for changed pages - 0.000s 12:12:40 AM: success update schema - 0.076s 12:12:40 AM: success onPreExtractQueries - 0.002s 12:12:44 AM: success extract queries from components - 4.150s 12:13:08 AM: 12:13:08 AM: ──────────────────────────────────────────────────────────────── 12:13:08 AM: "build.command" failed 12:13:08 AM: ──────────────────────────────────────────────────────────────── 12:13:08 AM: 12:13:08 AM: Error message 12:13:08 AM: Command was killed with SIGKILL (Forced termination): gatsby build 12:13:08 AM: 12:13:08 AM: Error location 12:13:08 AM: In Build command from Netlify app: 12:13:08 AM: gatsby build 12:13:08 AM: 12:13:08 AM: Resolved config 12:13:08 AM: build: 12:13:08 AM: command: gatsby build 12:13:08 AM: commandOrigin: ui 12:13:08 AM: publish: /opt/build/repo/public 12:13:09 AM: Caching artifacts 12:13:09 AM: Started saving node modules 12:13:09 AM: Finished saving node modules 12:13:09 AM: Started saving build plugins 12:13:09 AM: Finished saving build plugins 12:13:09 AM: Started saving pip cache 12:13:09 AM: Finished saving pip cache 12:13:09 AM: Started saving emacs cask dependencies 12:13:09 AM: Finished saving emacs cask dependencies 12:13:09 AM: Started saving maven dependencies 12:13:09 AM: Finished saving maven dependencies 12:13:09 AM: Started saving boot dependencies 12:13:09 AM: Finished saving boot dependencies 12:13:09 AM: Started saving rust rustup cache 12:13:09 AM: Finished saving rust rustup cache 12:13:09 AM: Started saving go dependencies 12:13:09 AM: Finished saving go dependencies 12:13:12 AM: Build failed due to a user error: Build script returned non-zero exit code: 2 12:13:12 AM: Creating deploy upload records 12:13:12 AM: Failing build: Failed to build site 12:13:12 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 12:13:12 AM: Finished processing build request in 1m40.558266762s I ran into this problem trying to deploy a site that worked fine locally. I couldn't pinpoint the problem so I started troubleshooting. I started a new project based on the gatsby hello-world project, which deploys fine. I then added the styled-components, and they work as well. After this, the deploy problem arises; when I add the StaticImage on the homepage (the only active page in this project), and with it the gatsby-plugins and gatsby-filesystem. After this, the deploy fails. Unfortunately, I found literally dozens of forum posts pointing to different problems and solutions associated with this error of 'Command was killed with SIGKILL'; and even so none of them fixed my problem up to now. I would be very grateful if anyone could provide insight in my particular case. My code on github: https://github.com/Boomstam/FAGQ package.json { "name": "gatsby-starter-hello-world", "private": true, "description": "A simplified bare-bones starter for Gatsby", "version": "0.1.0", "license": "0BSD", "scripts": { "build": "gatsby build", "develop": "gatsby develop", "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"", "start": "npm run develop", "serve": "gatsby serve", "clean": "gatsby clean", "test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1" }, "dependencies": { "gatsby": "^3.4.1", "gatsby-plugin-image": "^1.4.1", "gatsby-plugin-sharp": "^3.4.2", "gatsby-source-filesystem": "^3.4.0", "react": "^17.0.1", "react-dom": "^17.0.1", "styled-components": "^5.3.0" }, "devDependencies": { "prettier": "2.2.1" }, "repository": { "type": "git", "url": "https://github.com/gatsbyjs/gatsby-starter-hello-world" }, "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" } } gatsby-config.js /** * Configure your Gatsby site with this file. * * See: https://www.gatsbyjs.com/docs/gatsby-config/ */ module.exports = { /* Your site config here */ plugins: [ "gatsby-plugin-image", "gatsby-plugin-sharp", { resolve: `gatsby-source-filesystem`, options: { name: `images`, path: `${__dirname}/src/images`, }, }, ], }
I don't see anything wrong in your repository so to me, there's a mismatching of versions between your local environment and Netlify's deployment environment. Try forcing the Node version by: node -v > .nvmrc This will generate a .nvmrc file in the root of your project with your current Node version. Something similar to: v14.16.1 Netlify, in the deploy time, will take that file as a base configuration for Node version according to their documentation.
Yarn add babel/preset-react fails
Using the command recommended by the docs: > yarn add #babel/preset-react --dev yarn add v1.17.3 [1/5] 🔍 Validating package.json... [2/5] 🔍 Resolving packages... error An unexpected error occurred: "https://registry.yarnpkg.com/#babel%2freact: Not found". According to the docs you can add git repo directly: > yarn add https://github.com/babel/babel/tree/master/packages/babel-preset-react --dev yarn add v1.17.3 [1/5] 🔍 Validating package.json... [2/5] 🔍 Resolving packages... error An unexpected error occurred: "https://registry.yarnpkg.com/#babel%2freact: Not found".
Probleme to install Superdesk Newsroom
I'm trying to install newsromm from https://github.com/superdesk/newsroom with installation with NPM I've these errors : npm WARN deprecated babel-preset-es2015#6.24.1: Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! npm WARN deprecated nomnom#1.6.2: Package no longer supported. Contact support#npmjs.com for more info. > node-sass#4.9.0 install /root/newsroom/node_modules/node-sass > node scripts/install.js internal/modules/cjs/loader.js:596 throw err; ^ Error: Cannot find module '/root/newsroom/node_modules/node-sass/scripts/install.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15) at Function.Module._load (internal/modules/cjs/loader.js:520:25) at Function.Module.runMain (internal/modules/cjs/loader.js:744:10) at startup (internal/bootstrap/node.js:240:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:564:3) npm WARN ajv-keywords#3.2.0 requires a peer of ajv#^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN newsroom No repository field. npm WARN newsroom No license field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass#4.9.0 install: `node scripts/install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass#4.9.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-07-01T18_21_45_224Z-debug.log and with installation with YARN everything looks good : yarn install v1.7.0 (node:40422) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. [1/4] Resolving packages... [2/4] Fetching packages... info fsevents#1.1.3: The platform "linux" is incompatible with this module. info "fsevents#1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning " > react-toggle#4.0.2" has unmet peer dependency "prop-types#^15.3.0". [4/4] Building fresh packages... Done in 236.13s. but when I start the app , I'v this message: honcho start -p 5050 18:17:07 system | web.1 started (pid=52710) 18:17:07 system | websocket.1 started (pid=52711) 18:17:08 websocket.1 | /usr/bin/python: No module named superdesk 18:17:08 system | websocket.1 stopped (rc=1) 18:17:08 system | sending SIGTERM to web.v How can I resolve this ? Blockquote
Newsroom is just a plugin for Superdesk. You need to install Superdesk as well from https://github.com/superdesk/superdesk.
ionic serve bug with #ionic/cli-plugin-ionic-angular in ionic3
I just ran into this bug while trying to run my ionic3 app in my browser. I have recently migrated from ionic2 to ionic3 and it was quite smooth. After a few runs, this bug came up. C:\Users\Emeka\Documents\Current Project\Freelance>ionic serve [ERROR] An error occurred while running npm view #ionic/cli-plugin-ionic-angular dist-tags.latest --json (exit code 1): npm ERR! code ENOENT npm ERR! errno ENOENT npm ERR! syscall getaddrinfo npm ERR! enoent getaddrinfo ENOENT registry.npmjs.org:443 npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent { "error": { "code": "ENOENT", "summary": "getaddrinfo ENOENT registry.npmjs.org:443", "detail": "This is related to npm not being able to find a file.\n" } } npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Emeka\AppData\Roaming\npm-cache\_logs\2017-06-09T21_18_38_802Z-debug.log
Did u try deleting ur node-modules directory and running npm install again?
I just solved the problem after looking up a link -- https://www.npmjs.com/package/#ionic/app-scripts First I ran npm install #ionic/app-scripts#latest --save-dev C:\Users\Emeka\Documents\Current Project\Freelance>npm install #ionic/app-scripts#latest --save-dev npm WARN deprecated object-keys#0.2.0: Please update to the latest object-keys + #ionic/app-scripts#1.3.7 added 63 packages, removed 9 packages and updated 1 package in 118.187s Then considering the warning I had to update my object-keys to the latest version C:\Users\Emeka\Documents\Current Project\Freelance>npm install object-keys#latest --save-dev + object-keys#1.0.11 updated 1 package in 30.535s Finally I tried my ionic serve again and it was fine without errors C:\Users\Emeka\Documents\Current Project\Freelance>ionic serve [INFO] Starting app-scripts server: --port 8100 --p 8100 --livereload-port 35729 --r 35729 --address 0.0.0.0 - Ctrl+C to cancel [23:13:09] watch started ... [23:13:09] build dev started ... [23:13:09] clean started ... [23:13:10] clean finished in 104 ms [23:13:10] copy started ... [23:13:10] transpile started ... [23:13:23] transpile finished in 13.17 s [23:13:23] preprocess started ... [23:13:23] deeplinks started ... [23:13:23] deeplinks finished in 169 ms [23:13:23] preprocess finished in 185 ms [23:13:23] webpack started ... [23:13:25] copy finished in 15.44 s [23:13:39] webpack finished in 16.25 s [23:13:39] sass started ... [23:13:49] sass finished in 10.25 s [23:13:49] postprocess started ... [23:13:50] postprocess finished in 70 ms [23:13:50] lint started ... [23:13:50] build dev finished in 40.20 s [23:13:50] watch ready in 40.95 s [23:13:50] dev server running: http://localhost:8100/