Title: Building Code-server in freebsd error with npm and node path error · Issue #529 · coder/code-server · GitHub
Open Graph Title: Building Code-server in freebsd error with npm and node path error · Issue #529 · coder/code-server
X Title: Building Code-server in freebsd error with npm and node path error · Issue #529 · coder/code-server
Description: code-server version: Github Master OS Version: FreeBSD 11.2 Description Try to build the code server. $ node --version v11.6.0 $ yarn --version 1.12.3 $ npm --version 6.4.1 then: ./scripts/build.sh which halted at : yarn run v1.12.3 $ ts...
Open Graph Description: code-server version: Github Master OS Version: FreeBSD 11.2 Description Try to build the code server. $ node --version v11.6.0 $ yarn --version 1.12.3 $ npm --version 6.4.1 then: ./scripts/build.sh...
X Description: code-server version: Github Master OS Version: FreeBSD 11.2 Description Try to build the code server. $ node --version v11.6.0 $ yarn --version 1.12.3 $ npm --version 6.4.1 then: ./scripts/build.sh...
Opengraph URL: https://github.com/coder/code-server/issues/529
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Building Code-server in freebsd error with npm and node path error","articleBody":"\u003c!-- Please search existing issues to avoid creating duplicates. -->\r\n\u003c!-- All extension-specific issues should be created with the `Extension Bug` template. -->\r\n\r\n- `code-server` version: Github Master\r\n- OS Version: FreeBSD 11.2\r\n## Description\r\n\r\nTry to build the code server. \r\n\r\n```\r\n$ node --version\r\nv11.6.0\r\n$ yarn --version\r\n1.12.3\r\n$ npm --version\r\n6.4.1\r\n```\r\nthen:\r\n./scripts/build.sh which halted at :\r\n\r\n```\r\nyarn run v1.12.3\r\n$ ts-node -r tsconfig-paths/register build/tasks.ts build:server:binary\r\nINFO BUILD:SERVER:BINARY Starting...\r\nINFO VSCODE:INSTALL Starting...\r\nINFO VSCODE:INSTALL Executing 'git [\"reset\",\"--hard\"]' {\"options\":{\"cwd\":\"/usr/home/system/code-server/lib/vscode\"}}\r\nINFO VSCODE:INSTALL Completed! time=770ms {\"time\":{\"expected\":9007199254740991,\"ms\":1555582202397}}\r\nINFO BUILD:BOOTSTRAP-FORK Starting...\r\nINFO BUILD:WEB Starting...\r\nINFO BUILD:SERVER:BUNDLE Starting...\r\nINFO BUILD:SERVER:BUNDLE Executing 'npm [\"run\",\"build\"]' {\"options\":{\"cwd\":\"/usr/home/system/code-server/packages/server\"}}\r\nINFO BUILD:APP:BROWSER Starting...\r\nINFO VSCODE:PATCH Starting...\r\nINFO BUILD:APP:BROWSER Executing 'npm [\"run\",\"build\"]' {\"options\":{\"cwd\":\"/usr/home/system/code-server/packages/app/browser\"}}\r\nINFO VSCODE:PATCH Executing 'git [\"apply\",\"--unidiff-zero\",\"/usr/home/system/code-server/scripts/vscode.patch\"]' {\"options\":{\"cwd\":\"/usr/home/system/code-server/lib/vscode\"}}\r\nINFO VSCODE:PATCH Completed! time=29ms {\"time\":{\"expected\":9007199254740991,\"ms\":1555582203171}}\r\nINFO BUILD:BOOTSTRAP-FORK Executing 'npm [\"run\",\"build:bootstrap-fork\"]' {\"options\":{\"cwd\":\"/usr/home/system/code-server/packages/vscode\"}}\r\nINFO BUILD:WEB Executing 'npm [\"run\",\"build\"]' {\"options\":{\"cwd\":\"/usr/home/system/code-server/packages/web\"}}\r\nINFO BUILD:APP:BROWSER Completed! time=4762ms {\"time\":{\"expected\":9007199254740991,\"ms\":1555582203171}}\r\nINFO BUILD:SERVER:BUNDLE Completed! time=9376ms {\"time\":{\"expected\":9007199254740991,\"ms\":1555582203168}}\r\nINFO BUILD:BOOTSTRAP-FORK Completed! time=12902ms {\"time\":{\"expected\":9007199254740991,\"ms\":1555582203167}}\r\nINFO BUILD:WEB Completed! time=19778ms {\"time\":{\"expected\":9007199254740991,\"ms\":1555582203168}}\r\nINFO BUILD:SERVER:BINARY:PACKAGE Starting...\r\nINFO BUILD:SERVER:BINARY:COPY Starting...\r\nINFO BUILD:SERVER:BINARY:COPY Completed! time=1865ms {\"time\":{\"expected\":9007199254740991,\"ms\":1555582222946}}\r\nINFO BUILD:SERVER:BINARY:PACKAGE Executing 'npm [\"run\",\"build:binary\"]' {\"options\":{\"cwd\":\"/usr/home/system/code-server/packages/server\"}}\r\nERROR BUILD:SERVER:BINARY:PACKAGE failed {\"exitCode\":1,\"stdout\":\"\\n> server@ build:binary /usr/home/system/code-server/packages/server\\n> ts-node scripts/nbin.ts\\n\\n\\u001b[1m\\u001b[38;2;0;143;191mINFO \\u001b[0mPackaged module\\u001b[38;2;140;140;140m {\\\"module\\\":\\\"spdlog\\\"}\\n\\u001b[1m\\u001b[38;2;0;143;191mINFO \\u001b[0mPackaged module\\u001b[38;2;140;140;140m {\\\"module\\\":\\\"node-pty\\\"}\\n\\u001b[1m\\u001b[38;2;0;143;191mINFO \\u001b[0mPackaged module\\u001b[38;2;140;140;140m {\\\"module\\\":\\\"mkdirp\\\"}\\n\\u001b[1m\\u001b[38;2;0;143;191mINFO \\u001b[0mPackaged module\\u001b[38;2;140;140;140m {\\\"module\\\":\\\"bindings\\\"}\\n\\u001b[1m\\u001b[38;2;0;143;191mINFO \\u001b[0mFetching\\u001b[38;2;140;140;140m {\\\"url\\\":\\\"https://nbin.cdr.sh/1.1.2/node-10.15.1-freebsd-x86_64\\\"}\\n\",\"stderr\":\"npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1555582201821-0.772229819417033/node but npm is using /usr/local/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.\\n✔ Wrote 1128 files!\\n✔ Wrote 1 file!\\nError: Forbidden\\n at e.Binary.\u003canonymous> (/usr/home/system/code-server/packages/server/node_modules/@coder/nbin/out/api.js:1:43397)\\n at Generator.next (\u003canonymous>)\\n at s (/usr/home/system/code-server/packages/server/node_modules/@coder/nbin/out/api.js:1:40627)\\n at process.internalTickCallback (internal/process/next_tick.js:77:7)\\nnpm ERR! code ELIFECYCLE\\nnpm ERR! errno 1\\nnpm ERR! server@ build:binary: `ts-node scripts/nbin.ts`\\nnpm ERR! Exit status 1\\nnpm ERR! \\nnpm ERR! Failed at the server@ build:binary script.\\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\\n\\nnpm ERR! A complete log of this run can be found in:\\nnpm ERR! /home/system/.npm/_logs/2019-04-18T10_10_26_210Z-debug.log\\n\"}\r\nERROR BUILD:SERVER:BINARY:PACKAGE Failed: Failed to package binary: npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1555582201821-0.772229819417033/node but npm is using /usr/local/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.\r\n✔ Wrote 1128 files!\r\n✔ Wrote 1 file!\r\nError: Forbidden\r\n at e.Binary.\u003canonymous> (/usr/home/system/code-server/packages/server/node_modules/@coder/nbin/out/api.js:1:43397)\r\n at Generator.next (\u003canonymous>)\r\n at s (/usr/home/system/code-server/packages/server/node_modules/@coder/nbin/out/api.js:1:40627)\r\n at process.internalTickCallback (internal/process/next_tick.js:77:7)\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! server@ build:binary: `ts-node scripts/nbin.ts`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the server@ build:binary script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR! /home/system/.npm/_logs/2019-04-18T10_10_26_210Z-debug.log\r\n\r\nERROR BUILD:SERVER:BINARY:PACKAGE Stack: Error: Failed to package binary: npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1555582201821-0.772229819417033/node but npm is using /usr/local/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.\r\n✔ Wrote 1128 files!\r\n✔ Wrote 1 file!\r\nError: Forbidden\r\n at e.Binary.\u003canonymous> (/usr/home/system/code-server/packages/server/node_modules/@coder/nbin/out/api.js:1:43397)\r\n at Generator.next (\u003canonymous>)\r\n at s (/usr/home/system/code-server/packages/server/node_modules/@coder/nbin/out/api.js:1:40627)\r\n at process.internalTickCallback (internal/process/next_tick.js:77:7)\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! server@ build:binary: `ts-node scripts/nbin.ts`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the server@ build:binary script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR! /home/system/.npm/_logs/2019-04-18T10_10_26_210Z-debug.log\r\n\r\n at Object.runner_1.register [as func] (/usr/home/system/code-server/build/tasks.ts:39:9)\r\n at process.internalTickCallback (internal/process/next_tick.js:77:7)\r\nerror Command failed with exit code 1.\r\n\r\n```","author":{"url":"https://github.com/emanzx","@type":"Person","name":"emanzx"},"datePublished":"2019-04-18T10:17:56Z","url":"https://github.com/coder/code-server/issues/529"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:42555a5c-fecd-56c9-f2e2-81f3ee9f99b3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBFC:3DCD28:B5E1B9:F1B1C5:6B01C250 |
| html-safe-nonce | eefabdfdf1d97420f29e874631db4454c14bc0290f0736c52c114071fa5e297c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkZDOjNEQ0QyODpCNUUxQjk6RjFCMUM1OjZCMDFDMjUwIiwidmlzaXRvcl9pZCI6IjM1NjEwOTY4NTczODE4ODA0MDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9cc88f6465508d88e5f1f091797459929659971a906a87904bbe2edf4e67cf46 |
| hovercard-subject-tag | issue:434695453 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/code-server/529/issue_layout |
| twitter:image | https://opengraph.githubassets.com/22a57e3436bb6ce9fc5227bdd3b6fc7535bf3c35064cd3037054a10d7d9174a0/coder/code-server/issues/529 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/22a57e3436bb6ce9fc5227bdd3b6fc7535bf3c35064cd3037054a10d7d9174a0/coder/code-server/issues/529 |
| og:image:alt | code-server version: Github Master OS Version: FreeBSD 11.2 Description Try to build the code server. $ node --version v11.6.0 $ yarn --version 1.12.3 $ npm --version 6.4.1 then: ./scripts/build.sh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | emanzx |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/code-server git https://github.com/coder/code-server.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 172953845 |
| octolytics-dimension-repository_nwo | coder/code-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 172953845 |
| octolytics-dimension-repository_network_root_nwo | coder/code-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width