Category: NPM
-
Post Views: 20 1. In Laravel 6, when installing Laravel Mix (npm install), an error is reported: npm err! Eresolve Unable to resolve dependency tree. as shown in Figure 1 2. Find the existence of the program root directory: yarn.lock, replace with: yarn command, no more errors. as shown in Figure 2
-
Post Views: 66 1. When executing: npm install, it has been executed for about half an hour, and an error is reported: if you are behind a proxy, please make sure that theProxyconfig is set properly. . as shown in Figure 1 2. Check the npm proxy settings, the value is: https://127.0.0.1:8888/ 3. Decide to delete the npm proxy settings.…
-
Post Views: 15 1. Reference: In Refactoring: Improve the Design of Existing Code (2nd Edition), run test cases based on Mocha. 2. MOCHA allows you to use any of the assertion libraries you want. In the above example, we used Node.js’s built-in assertion module. Schedule to use assertion library Chai. 3. Reference:https://mochajs.org/#assertions. The assertion library Chai supports expect(), assert() and…
-
Post Views: 18 1. Reference: Install Shopify CLI 3.0 (based on Node.js) in Windows 10 Professional Edition. After installation, you will be prompted that the new version of Shopify CLI is available! Your version is 2.15.6 and the latest version is 2.34.0. To upgrade, follow the instructions of the package manager you are using:https://shopify.dev/tools/cli/troubleshooting#upgrade-shopify-cli 2. To upgrade Shopify CLI 3.x…
-
Post Views: 19 1. Reference:https://shopify.dev/themes/tools/cli/install#requirements, the requirements in Windows are as follows 2. The version of Node.js is: V16.13.1, which is higher than 14.17.0. meet the requirements. 3. Reference:https://www.shuijingwanwq.com/2022/05/10/6388/. Steps 1 and 2. The version of Ruby+DevKit is: 3.1.x (x64), which is higher than Ruby+DevKit 3.0. meet the requirements. 4. The version of Bundler is: 2.3.24, which is higher than…
-
Post Views: 15 1. When executing the command: npm run build, prompt: npm err! missing script: “build”. as shown in Figure 1 2. Check the package.json file, you can confirm that the scripts does not contain the build script. as shown in Figure 2 3. According to the prompt: to see a list of scripts, run: npm run. To view…
-
Post Views: 14 1. When executing the command: yarn run prod, prompt: browserslist caniuse-lite is outdated. Please run npx browserslist@latest –update-db. as shown in Figure 1 2. Execute the command: npx browserslist@latest –update-db , caniuse-lite has been successfully updated, and the target browser has no changes. as shown in Figure 2 3. When executing the command: yarn run prod, an…
-
Post Views: 16 1. In Laravel 8.6.3, Laravel Breeze is installed, and when executing npm run dev, an error is reported: You are using an unsupported version of node. Please update to at least node v12.14. as shown in Figure 1 2. Check the version of Node.js: v8.10.0. The required version is at least: Node v12.14. as shown in Figure…
-
Post Views: 55 1. Install React Developer Tools (Chrome, React Developer Tools) to determine whether the build process is correct, as shown in Figure 1 2. When visiting a React page of a development mode, the icon of this tool will have a red background, as shown in Figure 2 This page is using the development of react. Note that…
-
Post Views: 15 1. On the official website:https://nodejs.org/zh-cn/Download the recommended version: 8.10.0 LTS, as shown in Figure 1 2. Right-click to install, prompt: Windows SmartScreen CanT Be Reached Right Now, click the RUN button, as shown in Figure 2 Windows SmartScreen CanT Be Reached Right Now Check your Internet connection.Windows SmartScreen is unreachable and canT help you decide if this…