cost 229 ms
卡皮斯特拉諾寶石。 編譯錯誤。 SSHKit::Command::Failed:rake 退出狀態:1

[英]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 ...

無法讓 nvm 通過 shell 腳本更改節點版本

[英]Can't get nvm to change node version via shell script

我正在處理兩個項目,一個使用節點 16,一個使用節點 18。我在其中一個項目中創建了一個腳本,以便在運行下一個開發之前切換到 18。 注意:Nvm 在我的終端上工作。 我使用 zsh 並使用自制軟件安裝了 nvm。 腳本看起來像這樣: 但是,當我使用 yarn 運行腳本時,我得到: nvm is n ...

安裝 angular 材料后找不到模塊“@angular/platform-browser/animations”

[英]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:“錯誤:命令失敗:yarn add react-native@latest”

[英]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 - 找不到模塊“@tanstack/react-query”或其相應的類型 declarations.ts

[英]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 - 找不到模塊“@nestjs/core”或其相應的類型聲明

[英]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 中的某些內容配置 ...

將 nodejs 項目轉換為 yarn 項目后,React-scroll 停止工作

[英]React-scroll stopped working after turning a nodejs project into a yarn project

我有一個最初使用 node.js 構建的項目,但我將其切換為 yarn。 一切正常,除了反應滾動。 我已經卸載重裝,確認還在package.json。 其他人之前遇到過這個問題或有任何故障排除提示嗎? 這是我要鏈接到網站的某個部分的按鈕的代碼片段: 這是我要鏈接到的文章的代碼: ...

“yarn init”不允許我開始新項目

[英]"yarn init" is not letting me start new project

我安裝了 Yarn Package Manager,所以我可以使用 JavaScript。 但問題是,當我輸入命令“yarn init”時,以下創建項目名稱、描述等命令提示問題不會出現。 終端中唯一顯示的是下圖。 它只顯示主文件夾的名稱,以及 yarn package 管理器版本。 我通過命令“c ...

將笑話測試轉換為 typescript: SyntaxError: Cannot use import statement outside a module

[英]Converting jest test to typescript: SyntaxError: Cannot use import statement outside a module

我正在關注jest 中簡單且編寫良好的文檔,並且我讓這個測試正常工作: 現在,我想切換到 typescript,所以我將上面的文件重命名為.ts擴展名,在命令行中調用yarn add --dev ts-jest (因為我更喜歡不使用 Babel),並按照建議添加了這個導入在文檔中: import ...

使用 yarn add pg-hstore 時出錯:找不到補丁包

[英]Error while using yarn add pg-hstore: patch-package not found

我正在嘗試在我的 react-app 中使用sequelize ,並且已經通過yarn add添加了sequelize 、 sequelize-cli和pg ,但是在嘗試添加pg-hstore時會出現此錯誤: 我不知道如何解決這個問題,任何幫助將不勝感激。 ...

無法激活紗線

[英]Cannot activate yarn

我正在關注紗線安裝文檔。 當我運行corepack prepare yarn@stable --activate時,出現Usage Error: Invalid package manager specification in CLI arguments; expected a semver ver ...

當我只更新一個站點時,Gatsby Cloud 會重建所有站點

[英]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 ...

我無法使用紗線 3 從 git 添加自定義私有包,但我可以使用紗線 1.22.18 添加

[英]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 那么我該如何 ...

代理后面的 optipng-bin 紗線安裝失敗

[英]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 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM