Hey Netlify,
I just created a new project with Next.JS with PNPM v8. While my site is built as normal, it’s built with npm
instead of pnpm
, which is not intended. I think it has something to do with PNPM lockfile version (as in the deployment log, below)
Relevant information:
Site name: suara-rakyat-suara-tuhan
Deployment build: https://646208b3de22730008889f4b--suara-rakyat-suara-tuhan.netlify.app/
PNPM version (local): 8.3.1
PNPM lockfile version: 6.0
Deployment log:
5:25:59 PM: build-image version: 340a5296c836ef3d99ac1d871c6447bb7a417c33 (focal)
5:25:59 PM: buildbot version: 20d735efc756356fd09bbc43982bef2018461b10
5:25:59 PM: Fetching cached dependencies
5:25:59 PM: Starting to download cache of 200.7MB
5:26:00 PM: Finished downloading cache in 1.164s
5:26:00 PM: Starting to extract cache
5:26:02 PM: Finished extracting cache in 1.484s
5:26:02 PM: Finished fetching cache in 2.694s
5:26:02 PM: Starting to prepare the repo for build
5:26:02 PM: Preparing Git Reference pull/1/head
5:26:03 PM: Parsing package.json dependencies
5:26:04 PM: Starting to install dependencies
5:26:04 PM: Python version set to 3.8
5:26:04 PM: Attempting Ruby version 2.7.2, read from environment
5:26:05 PM: Using Ruby version 2.7.2
5:26:05 PM: Started restoring cached go cache
5:26:05 PM: Finished restoring cached go cache
5:26:05 PM: Installing Go version 1.19.5 (requested 1.19.5)
5:26:10 PM: go version go1.19.5 linux/amd64
5:26:10 PM: Using PHP version 8.0
5:26:11 PM: Started restoring cached Node.js version
5:26:11 PM: Finished restoring cached Node.js version
5:26:11 PM: Attempting Node.js version 'v18.16.0' from .nvmrc
5:26:12 PM: v18.16.0 is already installed.
5:26:12 PM: Now using node v18.16.0 (npm v9.5.1)
5:26:12 PM: Enabling Node.js Corepack
5:26:12 PM: Started restoring cached build plugins
5:26:12 PM: Finished restoring cached build plugins
5:26:12 PM: Started restoring cached corepack dependencies
5:26:12 PM: Finished restoring cached corepack dependencies
5:26:13 PM: Found pnpm version (7.13.4) that doesn't match expected ()Usage Error: Invalid package manager specification in CLI arguments; expected a semver version, range, or tag
5:26:13 PM: $ corepack prepare [--activate] [--all] [--json] [-o,--output] ...
5:26:13 PM: jq: error (at <stdin>:72): Cannot iterate over null (null)
5:26:13 PM: No pnpm workspaces detected
5:26:13 PM: Started restoring cached node modules
5:26:13 PM: Finished restoring cached node modules
5:26:13 PM: Installing npm packages using pnpm version 7.13.4
5:26:13 PM: WARN Ignoring not compatible lockfile at /opt/build/repo/pnpm-lock.yaml
5:26:13 PM: Progress: resolved 1, reused 0, downloaded 0, added 0
5:26:14 PM: Progress: resolved 8, reused 0, downloaded 8, added 0
5:26:15 PM: Progress: resolved 89, reused 0, downloaded 71, added 0
5:26:16 PM: Already up to date
5:26:16 PM: Progress: resolved 123, reused 0, downloaded 114, added 0, done
5:26:18 PM: Done in 4.7s
5:26:18 PM: npm packages installed using pnpm
5:26:18 PM: Install dependencies script success
5:26:18 PM: Starting build script
5:26:19 PM: Detected 1 framework(s)
5:26:19 PM: "next" at version "13.4.2"
5:26:19 PM: Section completed: initializing
5:26:20 PM:
5:26:20 PM: Netlify Build
5:26:20 PM: ────────────────────────────────────────────────────────────────
5:26:20 PM:
5:26:20 PM: ❯ Version
5:26:20 PM: @netlify/build 29.11.2
5:26:20 PM:
5:26:20 PM: ❯ Flags
5:26:20 PM: baseRelDir: true
5:26:20 PM: buildId: 646208b3de22730008889f49
5:26:20 PM: deployId: 646208b3de22730008889f4b
5:26:20 PM:
5:26:20 PM: ❯ Current directory
5:26:20 PM: /opt/build/repo
5:26:20 PM:
5:26:20 PM: ❯ Config file
5:26:20 PM: No config file was defined: using default values.
5:26:20 PM:
5:26:20 PM: ❯ Context
5:26:20 PM: deploy-preview
5:26:20 PM:
5:26:20 PM: ❯ Using Next.js Runtime - v4.36.1
5:26:22 PM:
5:26:22 PM: @netlify/plugin-nextjs (onPreBuild event)
5:26:22 PM: ────────────────────────────────────────────────────────────────
5:26:22 PM:
5:26:22 PM: Next.js cache restored.
5:26:22 PM: Netlify configuration property "build.environment.NEXT_PRIVATE_TARGET" value changed.
5:26:22 PM:
5:26:22 PM: (@netlify/plugin-nextjs onPreBuild completed in 63ms)
5:26:22 PM:
5:26:22 PM: Build command from Netlify app
5:26:22 PM: ────────────────────────────────────────────────────────────────
5:26:22 PM:
5:26:22 PM: $ npm run build
5:26:22 PM: > empty@0.1.0 build
5:26:22 PM: > next build
5:26:22 PM: - info Creating an optimized production build...
5:26:26 PM: - info Compiled successfully
5:26:26 PM: - info Linting and checking validity of types...
5:26:27 PM: - info Collecting page data...
5:26:28 PM: - info Generating static pages (0/4)
5:26:28 PM: - info Generating static pages (1/4)
5:26:28 PM: - info Generating static pages (2/4)
5:26:28 PM: - info Generating static pages (3/4)
5:26:28 PM: - info Generating static pages (4/4)
5:26:29 PM: - info Finalizing page optimization...
5:26:29 PM: Route (app) Size First Load JS
5:26:29 PM: ┌ ○ / 4.93 kB 81.9 kB
5:26:29 PM: └ ○ /favicon.ico 0 B 0 B
5:26:29 PM: + First Load JS shared by all 76.9 kB
5:26:29 PM: ├ chunks/216-ff741b3da3004a02.js 24.5 kB
5:26:29 PM: ├ chunks/b026e9af-e632f5ae81b342ba.js 50.5 kB
5:26:29 PM: ├ chunks/main-app-77c3f4ee0a590fbc.js 214 B
5:26:29 PM: └ chunks/webpack-a71e0afe4755ac1d.js 1.68 kB
5:26:29 PM: Route (pages) Size First Load JS
5:26:29 PM: ─ ○ /404 179 B 86 kB
5:26:29 PM: + First Load JS shared by all 85.8 kB
5:26:29 PM: ├ chunks/main-b5ac08ac3ebfab50.js 83.9 kB
5:26:29 PM: ├ chunks/pages/_app-641854b241989486.js 193 B
5:26:29 PM: └ chunks/webpack-a71e0afe4755ac1d.js 1.68 kB
5:26:29 PM: ○ (Static) automatically rendered as static HTML (uses no initial props)
5:26:29 PM:
5:26:29 PM: (build.command completed in 6.8s)
5:26:29 PM:
5:26:29 PM: @netlify/plugin-nextjs (onBuild event)
5:26:29 PM: ────────────────────────────────────────────────────────────────
5:26:29 PM:
5:26:29 PM: Patching /opt/build/repo/node_modules/.pnpm/next@13.4.2_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/base-server.js
5:26:29 PM: Done
5:26:29 PM: Patching /opt/build/repo/node_modules/.pnpm/next@13.4.2_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/next-server.js
5:26:29 PM: Done
5:26:29 PM: Moving static page files to serve from CDN...
5:26:29 PM: Moved 2 files
5:26:29 PM: You are not using Netlify Edge Functions for image format detection. Set env var "NEXT_FORCE_EDGE_IMAGES=true" to enable.
5:26:29 PM: Netlify configuration property "redirects" value changed to [
5:26:29 PM: { from: '/_next/static/*', to: '/static/:splat', status: 200 },
5:26:29 PM: {
5:26:29 PM: from: '/_next/image*',
5:26:29 PM: query: { url: ':url', w: ':width', q: ':quality' },
5:26:29 PM: to: '/_ipx/w_:width,q_:quality/:url',
5:26:29 PM: status: 301
5:26:29 PM: },
5:26:29 PM: { from: '/_ipx/*', to: '/.netlify/builders/_ipx', status: 200 },
5:26:29 PM: { from: '/cache/*', to: '/404.html', status: 404, force: true },
5:26:29 PM: { from: '/server/*', to: '/404.html', status: 404, force: true },
5:26:29 PM: { from: '/serverless/*', to: '/404.html', status: 404, force: true },
5:26:29 PM: { from: '/trace', to: '/404.html', status: 404, force: true },
5:26:29 PM: { from: '/traces', to: '/404.html', status: 404, force: true },
5:26:29 PM: {
5:26:29 PM: from: '/routes-manifest.json',
5:26:29 PM: to: '/404.html',
5:26:29 PM: status: 404,
5:26:29 PM: force: true
5:26:29 PM: },
5:26:29 PM: {
5:26:29 PM: from: '/build-manifest.json',
5:26:29 PM: to: '/404.html',
5:26:29 PM: status: 404,
5:26:29 PM: force: true
5:26:29 PM: },
5:26:29 PM: {
5:26:29 PM: from: '/prerender-manifest.json',
5:26:29 PM: to: '/404.html',
5:26:29 PM: status: 404,
5:26:29 PM: force: true
5:26:29 PM: },
5:26:29 PM: {
5:26:29 PM: from: '/react-loadable-manifest.json',
5:26:29 PM: to: '/404.html',
5:26:29 PM: status: 404,
5:26:29 PM: force: true
5:26:29 PM: },
5:26:29 PM: { from: '/BUILD_ID', to: '/404.html', status: 404, force: true },
5:26:29 PM: {
5:26:29 PM: from: '/api/*',
5:26:29 PM: to: '/.netlify/functions/___netlify-handler',
5:26:29 PM: status: 200
5:26:29 PM: },
5:26:29 PM: {
5:26:29 PM: from: '/next.svg',
5:26:29 PM: to: '/next.svg',
5:26:29 PM: conditions: { Cookie: [Array] },
5:26:29 PM: status: 200
5:26:29 PM: },
5:26:29 PM: {
5:26:29 PM: from: '/vercel.svg',
5:26:29 PM: to: '/vercel.svg',
5:26:29 PM: conditions: { Cookie: [Array] },
5:26:29 PM: status: 200
5:26:29 PM: },
5:26:29 PM: {
5:26:29 PM: from: '/*',
5:26:29 PM: to: '/.netlify/functions/___netlify-handler',
5:26:29 PM: status: 200,
5:26:29 PM: conditions: { Cookie: [Array] },
5:26:29 PM: force: true
5:26:29 PM: },
5:26:29 PM: {
5:26:29 PM: from: '/*',
5:26:29 PM: to: '/.netlify/functions/___netlify-handler',
5:26:29 PM: status: 200
5:26:29 PM: }
5:26:29 PM: ].
5:26:29 PM:
5:26:29 PM: (@netlify/plugin-nextjs onBuild completed in 50ms)
5:26:29 PM:
5:26:29 PM: Functions bundling
5:26:29 PM: ────────────────────────────────────────────────────────────────
5:26:29 PM:
5:26:29 PM: Packaging Functions from .netlify/functions-internal directory:
5:26:29 PM: - ___netlify-handler/___netlify-handler.js
5:26:29 PM: - ___netlify-odb-handler/___netlify-odb-handler.js
5:26:29 PM: - _ipx/_ipx.js
5:26:29 PM:
5:26:53 PM:
5:26:53 PM: (Functions bundling completed in 24.5s)
5:26:53 PM:
5:26:53 PM: Edge Functions bundling
5:26:53 PM: ────────────────────────────────────────────────────────────────
5:26:53 PM:
5:26:53 PM: Packaging Edge Functions from .netlify/edge-functions directory:
5:26:53 PM: - rsc-data
5:26:54 PM:
5:26:54 PM: (Edge Functions bundling completed in 643ms)
5:26:54 PM:
5:26:54 PM: @netlify/plugin-nextjs (onPostBuild event)
5:26:54 PM: ────────────────────────────────────────────────────────────────
5:26:54 PM:
5:26:54 PM: Next.js cache saved.
5:26:54 PM: 🧪 Thank you for testing "appDir" support on Netlify. For known issues and to give feedback, visit https://ntl.fyi/next-13-feedback
5:26:54 PM:
5:26:54 PM: (@netlify/plugin-nextjs onPostBuild completed in 84ms)
5:26:54 PM:
5:26:54 PM: Deploy site
5:26:54 PM: ────────────────────────────────────────────────────────────────
5:26:54 PM:
5:26:54 PM: Starting to deploy site from '.next'
5:26:54 PM: Calculating files to upload
5:26:54 PM: 25 new files to upload
5:26:54 PM: 3 new functions to upload
5:27:02 PM: Section completed: deploying
5:27:02 PM: Site deploy was successfully initiated
5:27:02 PM:
5:27:02 PM: Starting post processing
5:27:02 PM: (Deploy site completed in 8.3s)
5:27:02 PM:
5:27:02 PM: Netlify Build Complete
5:27:02 PM: ────────────────────────────────────────────────────────────────
5:27:02 PM: Skipping HTML post processing
5:27:02 PM:
5:27:02 PM: (Netlify Build completed in 42s)
5:27:03 PM: Post processing - header rules
5:27:03 PM: Caching artifacts
5:27:03 PM: Post processing - redirect rules
5:27:03 PM: Started saving node modules
5:27:03 PM: Finished saving node modules
5:27:03 PM: Started saving build plugins
5:27:03 PM: Finished saving build plugins
5:27:03 PM: Post processing done
5:27:03 PM: Started saving corepack cache
5:27:03 PM: Finished saving corepack cache
5:27:03 PM: Section completed: postprocessing
5:27:03 PM: Started saving pip cache
5:27:03 PM: Finished saving pip cache
5:27:03 PM: Started saving emacs cask dependencies
5:27:03 PM: Finished saving emacs cask dependencies
5:27:03 PM: Started saving maven dependencies
5:27:03 PM: Finished saving maven dependencies
5:27:03 PM: Started saving boot dependencies
5:27:03 PM: Finished saving boot dependencies
5:27:03 PM: Started saving rust rustup cache
5:27:03 PM: Finished saving rust rustup cache
5:27:03 PM: Started saving go dependencies
5:27:03 PM: Finished saving go dependencies
5:27:03 PM: Build script success
5:27:03 PM: Section completed: building
5:27:04 PM: Uploading Cache of size 200.7MB
5:27:04 PM: Site is live ✨
5:27:05 PM: Section completed: cleanup
5:27:05 PM: Finished processing build request in 1m6.25s
Thank you for the assistance.