Tag: npm
-
Post Views: 22 1. npm : The file cannot be loaded c:\program files\nodejs\npm.ps1 because the script is prohibited from running on this system. For more information, see about_execution_policies in https:/go.microsoft.com/fwlink/?LinkId=135170. 2. Confirm that the file C:\Program Files\NodeJS\npm.ps1 exists. as shown in Figure 1 3. Enter one of the following commands to change the execution policy, which is permanently changed (valid…
-
Post Views: 13 1. When executing: npm run build:admin, an error is reported: nx failed to process the project graph with “nx-js-graph-plugin”. as shown in Figure 1 2. The reason should be that the default package manager of this project is PNPM, as shown in Figure 2 3. Final execution in sequence: pnpm install, pnpm run build: admin. If the…
-
Post Views: 21 1. When executing the command: npm run Deploy, an error is reported: Upgrade your CLI version to run the Deploy command. Prompt to upgrade the version of the CLI. as shown in Figure 1 2. When running: npm run Shopify version, prompt: Running this command will add the dependency to the workspace root rather than the workspace…
-
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: 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…
-
Post Views: 14 1. Use npm to install the less compiler, check the npm version, as shown in Figure 1 npm -v 2. Install the Less compiler globally, run npm in phpstorm, select file, and open settings, as shown in Figure 2 3. Click Node.js and npm under “Language and Framework”, and on the opened Node.js and npm page, pack…
-
Post Views: 50 1. Install V3 through npm, as shown in Figure 1 npm install bootstrap@3 2. Install Grunt to compile css and javascript files. Due to the slow installation speed of npm, finally choose cnpm, as shown in Figure 2 (1) Install grunt-cli in the global environment:npm install -g grunt-cli (2) Enter the /bootstrap/ root directory, and then execute…