Closed AmRo045 closed 3 months ago
Is that cmd or powershell? rm
is available on powershell but not on cmd.
it is powershell
Hi @AmRo045 , we are using the rimraf
NPM package to run rm -rf
util for all platforms, it should be installed to your node_module
by our package.json
. Please make sure you have run npm ci
and your Node.js environment can successfully run the binaries in node_modules
.
Hi @jyyi1, thanks for your help. I have run the npm
install in the root and client directories, and here is the output:
root dir:
outline-apps on master ≡ via 18.20.3 x
➜ npm install
npm warn skipping integrity check for git dependency ssh://git@github.com/apache/cordova-ios.git
npm warn deprecated @types/browserslist@4.15.0: This is a stub types definition. browserslist provides its own type definitions, so you do not need this installed.
npm warn deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm warn deprecated @hapi/pinpoint@1.0.2: Moved to 'npm install @sideway/pinpoint'
npm warn deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
npm warn deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm warn deprecated @babel/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
npm warn deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm warn deprecated @hapi/formula@1.2.0: Moved to 'npm install @sideway/formula'
npm warn deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm warn deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm warn deprecated date-format@2.1.0: 2.x is no longer supported. Please upgrade to 4.x or higher.
npm warn deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm warn deprecated @material/mwc-line-ripple@0.27.0: MWC beta is longer supported. Please upgrade to @material/web
npm warn deprecated @material/mwc-floating-label@0.27.0: MWC beta is longer supported. Please upgrade to @material/web
npm warn deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm warn deprecated @material/mwc-icon@0.27.0: MWC beta is longer supported. Please upgrade to @material/web
npm warn deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm warn deprecated asar@3.2.0: Please use @electron/asar moving forward. There is no API change, just a package name change
npm warn deprecated @material/mwc-textarea@0.27.0: MWC beta is longer supported. Please upgrade to @material/web
npm warn deprecated @material/mwc-formfield@0.27.0: MWC beta is longer supported. Please upgrade to @material/web
npm warn deprecated @material/mwc-notched-outline@0.27.0: MWC beta is longer supported. Please upgrade to @material/web
npm warn deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
npm warn deprecated streamroller@1.0.6: 1.x is no longer supported. Please upgrade to 3.x or higher.
npm warn deprecated @material/mwc-textfield@0.27.0: MWC beta is longer supported. Please upgrade to @material/web
npm warn deprecated @material/mwc-select@0.27.0: MWC beta is longer supported. Please upgrade to @material/web
npm warn deprecated @material/mwc-checkbox@0.27.0: MWC beta is longer supported. Please upgrade to @material/web
npm warn deprecated @material/mwc-circular-progress@0.27.0: MWC beta is longer supported. Please upgrade to @material/web
npm warn deprecated @material/mwc-radio@0.27.0: MWC beta is longer supported. Please upgrade to @material/web
npm warn deprecated @material/mwc-ripple@0.27.0: MWC beta is longer supported. Please upgrade to @material/web
npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm warn deprecated electron-osx-sign@0.6.0: Please use @electron/osx-sign moving forward. Be aware the API is slightly different
npm warn deprecated @material/mwc-button@0.27.0: MWC beta is longer supported. Please upgrade to @material/web
npm warn deprecated uuid@3.3.2: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm warn deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm warn deprecated @material/mwc-menu@0.27.0: MWC beta is longer supported. Please upgrade to @material/web
npm warn deprecated electron-notarize@1.2.2: Please use @electron/notarize moving forward. There is no API change, just a package name change
npm warn deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
npm warn deprecated log4js@4.5.1: 4.x is no longer supported. Please upgrade to 6.x or higher.
npm warn deprecated @hapi/joi@16.1.8: Switch to 'npm install joi'
npm warn deprecated @material/mwc-list@0.27.0: MWC beta is longer supported. Please upgrade to @material/web
npm warn deprecated intl-messageformat-parser@3.6.4: We've written a new parser that's 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser
npm warn deprecated istanbul@0.4.5: This module is no longer maintained, try this instead:
npm warn deprecated npm i nyc
npm warn deprecated Visit https://istanbul.js.org/integrations for other alternatives.
npm warn deprecated @formatjs/intl-utils@2.3.0: the package is rather renamed to @formatjs/ecma-abstract with some changes in functionality (primarily selectUnit is removed and we don't plan to make any further changes to this package
npm warn deprecated @formatjs/intl-unified-numberformat@3.3.7: We have renamed the package to @formatjs/intl-numberformat
added 3079 packages, changed 1 package, and audited 3086 packages in 16m
320 packages are looking for funding
run `npm fund` for details
93 vulnerabilities (5 low, 43 moderate, 41 high, 4 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues possible (including breaking changes), run:
npm audit fix --force
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
client dir:
client on master ≡ via 18.20.3
➜ npm install
up to date, audited 3085 packages in 37s
320 packages are looking for funding
run `npm fund` for details
75 vulnerabilities (4 low, 41 moderate, 26 high, 4 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues possible (including breaking changes), run:
npm audit fix --force
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
As I mentioned earlier, the start
command works, but I cannot add any key (the add button does nothing).
When I run the build
command for the first time, it outputs this:
After that, when I run it again, I get the same error:
Also, I noticed that there is no rimraf
package inside node_modules
even though it is defined in package.json
. Here is the content of the client node_modules
directory:
@AmRo045, thanks for the details. Unfortunately I am still not able to reproduce this issue. Since you're using a customized terminal, maybe its environment configuration is causing this issue?
the
start
command works
Actually the start
command is broken, so I wouldn't recommend using it. We're working on a solution.
When I run the
build
command for the first time, it outputs this
The correct build
command should be client/electron/build
, not client/src/www/build
.
Also, I noticed that there is no
rimraf
package insidenode_modules
The rimraf
package should be in the root node_modules
folder, not the one in the client
folder. All commands need to be run from the repository's root folder. And you should not run npm install
in the client
folder either.
when I run it again, I get the same error.
I've tested this with the built-in PowerShell (without Unix tools), and it works fine. Also our Windows GitHub CI build indicates that the build
command is working as well. I have attached the expected PowerShell output image below. (you can see from the last two commands, I only have the PowerShell's built-in rm
, not the Unix rm
)
@jyyi1, you're right, probably something is wrong with my environment. Thanks for your help.
Application
Outline Client
Describe the bug
I’m trying to build the Outline client for Windows by executing the following command after completing the basic setup. However, I encounter the following error: the build command:
the output:
NOTE the
start
command works and open the client in the browser, but I couldn't add any key.Steps to reproduce
npm install
go
langnpm run action client/electron/build windows
What did you expect to happen?
No response
What actually happened?
No response
Outline Version
1.10.1
What operation system are you using?
Windows
Operating System Version
11 pro (10.0.22631 N/A Build 22631)
Screenshots and Videos