[英]Capistrano gem. Compiling error. SSHKit::Command::Failed: rake exit status: 1
我正在嘗試部署我的項目。 之前沒有問題,但我在編譯步驟中突然出現以下錯誤。 我試過RAILS_ENV=production bundle exec rake assets:precompile並且它在本地編譯沒問題。 從我的研究中,我發現Error: write EPIPE might be re ...
[英]Capistrano gem. Compiling error. SSHKit::Command::Failed: rake exit status: 1
我正在嘗試部署我的項目。 之前沒有問題,但我在編譯步驟中突然出現以下錯誤。 我試過RAILS_ENV=production bundle exec rake assets:precompile並且它在本地編譯沒問題。 從我的研究中,我發現Error: write EPIPE might be re ...
[英]Can't get nvm to change node version via shell script
我正在處理兩個項目,一個使用節點 16,一個使用節點 18。我在其中一個項目中創建了一個腳本,以便在運行下一個開發之前切換到 18。 注意:Nvm 在我的終端上工作。 我使用 zsh 並使用自制軟件安裝了 nvm。 腳本看起來像這樣: 但是,當我使用 yarn 運行腳本時,我得到: nvm is n ...
[英]Cannot find module '@angular/platform-browser/animations' after installing angular material
啟動我的應用程序后,出現錯誤: 找不到模塊“@angular/platform-browser/animations” 這是我的 package.json: 這篇文章提到使用 npm 重新安裝 angular/cli。 不幸的是,我無法使用 npm 命令,因為出現此錯誤: npm 錯誤。 意外的 ...
[英]npx react-native init MyProject: "Error: Command failed: yarn add react-native@latest"
我決定在我想創建的新項目中使用 Yarn。 我按照他們的說明安裝了紗線。 紗線 v3.3.0 節點 v16.13.1 當我點擊npx react-native run-android MyProject時,它會拋出一個錯誤: 我已經卸載了 globall @react-native-communi ...
[英]React-query & typescript - Cannot find module '@tanstack/react-query' or its corresponding type declarations.ts
我正在使用打字稿進行反應項目(使用create-react-script設置)。 按照文檔,我安裝了 react-query 但我不斷收到打字稿錯誤: Cannot find module '@tanstack/react-query' or its corresponding type decl ...
[英]NestJs with typescript error - Cannot find module '@nestjs/core' or its corresponding type declarations
在 Vscode 中嘗試使用 Yarn 3 引導新的 NestJs 項目時,出現以下編譯錯誤: 還有@nestjs/common包 我為該包運行了 yarn install,它存在於 .yarn/cache 中,但似乎該項目無法通過 Yarn 的 PnP 定位包,或者 vscode 中的某些內容配置 ...
[英]React-scroll stopped working after turning a nodejs project into a yarn project
我有一個最初使用 node.js 構建的項目,但我將其切換為 yarn。 一切正常,除了反應滾動。 我已經卸載重裝,確認還在package.json。 其他人之前遇到過這個問題或有任何故障排除提示嗎? 這是我要鏈接到網站的某個部分的按鈕的代碼片段: 這是我要鏈接到的文章的代碼: ...
[英]Why installed Yarn package manager doesn't work?
我使用 cmd 安裝了紗線npm install --global yarn 但是當我嘗試使用它時,系統寫道: The term 'yarn' is not recognized as the name of a cmdlet, function, script file, or operable ...
[英]"yarn init" is not letting me start new project
我安裝了 Yarn Package Manager,所以我可以使用 JavaScript。 但問題是,當我輸入命令“yarn init”時,以下創建項目名稱、描述等命令提示問題不會出現。 終端中唯一顯示的是下圖。 它只顯示主文件夾的名稱,以及 yarn package 管理器版本。 我通過命令“c ...
[英]Babel skip logging the transpiled script to console
默認情況下將所有已轉譯的腳本記錄到控制台。 Babel 中是否有一個選項可以跳過將轉譯后的 javascript 記錄到控制台? ...
[英]Converting jest test to typescript: SyntaxError: Cannot use import statement outside a module
我正在關注jest 中簡單且編寫良好的文檔,並且我讓這個測試正常工作: 現在,我想切換到 typescript,所以我將上面的文件重命名為.ts擴展名,在命令行中調用yarn add --dev ts-jest (因為我更喜歡不使用 Babel),並按照建議添加了這個導入在文檔中: import ...
[英]Error while using yarn add pg-hstore: patch-package not found
我正在嘗試在我的 react-app 中使用sequelize ,並且已經通過yarn add添加了sequelize 、 sequelize-cli和pg ,但是在嘗試添加pg-hstore時會出現此錯誤: 我不知道如何解決這個問題,任何幫助將不勝感激。 ...
[英]Gitlab CI: Yarn not found
我正在嘗試對 gitlab ci 進行集成測試,但是當我提交並嘗試運行此 yaml 文件時,它輸出/bin/sh: eval: line 126: yarn: not found 有什么我想念的嗎? ...
[英]Yarn pnp causes drive letter mismatch on Windows with Testcafe
Testcafe 無法使用 yarn pnp 編譯我的測試,我在切換到 yarn pnp 后遇到以下錯誤: 錯誤信息: forceConsistentCasingInFileNames forceConsistentCasingInFileNames: false不會 function 作為解決 ...
[英]Cannot activate yarn
我正在關注紗線安裝文檔。 當我運行corepack prepare yarn@stable --activate時,出現Usage Error: Invalid package manager specification in CLI arguments; expected a semver ver ...
[英]react error my social media app is not working
收到此錯誤: ./src/reducers/AuthReducer.js 21:78 模塊解析失敗:意外令牌 (21:78) 您可能需要適當的加載程序來處理此文件類型。 ...
[英]Gatsby Cloud rebuild all the sites when I update only one site
我正在為我的 Gatsby 項目使用 Yarn 工作區。 我創建了一個名為“milan-site-theme”的 Gatsby 主題,它位於根目錄中。 我還創建了 4 個使用“milan-site-theme”作為依賴項的站點。 這 4 個站點位於 packages 目錄中。 我知道每當我對“mil ...
[英]Cannot find module 'react' or its corresponding type declarations
今天我將我的 yarn 版本從 1.x 切換到 3.x(最新),我的項目中的 Typescript 開始出現問題。 我見過很多人遇到同樣的問題,但不幸的是,所提供的解決方案都沒有解決它。 這是我當前的 package.json 版本: 即使將@types/react添加到 devDependenci ...
[英]I can't add a custom private packages from git with yarn 3 but I can add with yarn 1.22.18
我從 git 創建了一個自定義私有倉庫作為庫。 我想將該庫用於另一個項目,但我嘗試使用以下語法添加該庫:yarn add "@git+" 但我使用yarn 3,它無需構建即可將項目帶到外部庫。 當我將紗線版本設置為 1 時,我工作正常。 在一天結束時,我想在我的項目中使用 yarn 3 那么我該如何 ...
[英]yarn install fails for optipng-bin behind a proxy
我在我的本地構建環境中安裝了一個 squid-deb-proxy 代理。 要用 yarn 構建一個 package,我正在執行: 紗線安裝 --https-proxy=http://192.168.100.40:8000 --proxy=http://192.168.100.40:8000 --ve ...