84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
Overview
win10 system
Tried multiple versions of node
Question 1: The following error keeps reporting!
Problem 2: npm can install dependent packages, but it cannot run. For example, npm run dev, the following error will be reported
npm run dev
It should be that the environment variables are not set properly. You can refer to here:/a/11...
npm run dev must be run in the directory with package.json
The directory is not entered, right?
添加系统环境变量,选择安装的node目录
用户环境变量,也就是其他npm包的位置
I guess it’s because the command line tool you have is not working properly. Don’t use the one that comes with node. Try using cmd
Create a new user variable NODE_PATH in Advanced System Settings-Environment VariablesValue C:Program Filesnodejsnode_modules
Does your node have environment variables?
It should be that the environment variables are not set properly.
You can refer to here:/a/11...
npm run dev must be run in the directory with package.json
The directory is not entered, right?
添加系统环境变量,选择安装的node目录
用户环境变量,也就是其他npm包的位置
I guess it’s because the command line tool you have is not working properly. Don’t use the one that comes with node. Try using cmd
Create a new user variable NODE_PATH in Advanced System Settings-Environment Variables
Value C:Program Filesnodejsnode_modules
Does your node have environment variables?