Solving: Node_ENV is not internal or external command, nor is it runable, or batch files

tags: powershell

1 environment

win10+powershell

2 problem

The NPM Script I want to perform is as follows:
(The content of the script does not need attention, you need to pay attention to it.)

"scripts": {
        "build": "NODE_ENV=production webpack",
        "dev": "NODE_ENV=development node dev-server.js"
 }

Two scripts have reported the same error:

Node_env is not internal or external command, nor is it a running program, or a batch file

In fact, both of the above two scripts are merged (this operation is not supported in PowerShell, nor support in CMD, this is a unique operation in the Mac in Bash or Linux's shell), split two The script is as follows:

  "scripts": {
        "build": "set NODE_ENV=production && webpack",
        "dev": "set NODE_ENV=development && node dev-server.js"
    },

Run the script, no error

the above.

Intelligent Recommendation

The use of Terminal in Pycharm is not internal or external commands, nor is it runable or batch files.

In Terminal Enter Python3 bin \ server.py appears 'python3' is not internal or external command, nor is the runable program or batch file.View the Python installation path, is Python.exe Use the pytho...

'JavaP' is not internal or external commands, nor is it runable or batch files.

If Java_Home, you can run the java command. But you can't run, Java. It is not added in the system variable Path. Just add it in Path. Also remember, java_home is to bin directory, if not, Java can't ...

Win10 system "Javac" is not internal or external commands, nor is it runable or batch files.

Set the environment variables as follows Description: 1. If you edit the system environment variable, the command prompt needs to run in administrator privileges; if you edit in the user environment v...

'Javac' is not internal or external commands, nor is it runable or batch files.

Question: 1. Check that these two folders are missing in their Java directory. If it is missing, copy the two folders directly from your JDK installation directory. Lack of folders: After the folder i...

Git Bash 'Node' is not internal or external commands, nor is it runable or batch files.

Git Bash 'Node' is not internal or external commands, nor is it runable or batch files. systems Manual WINDOW 10 Professional 1803 node 12.18.3 npm 6.14.8 Problem Description NPM RUN DEV can be run no...

More Recommendation

'Javadoc' is not internal or external commands, nor is it runable or batch files.

Step 1: Search "View Advanced System Settings" in Search Bar Step 2: Open the environment settings Step 3: Configure the environment variables of java_home Step 4: Configure the PATH   ...

'Mongodump' is not internal or external commands, nor is it runable or batch files.

'Mongodump' is not internal or external command, nor is it a runable program Or batch files. 'MongoStore' is not internal or external command, nor is it a runable program Or batch files. When MogoDB b...

Go language 'protoc' is not internal or external commands, nor is it runable or batch files.

problem Golaand Environment Variable Settings On Windows10, set the protobuf environment variable GOPATH with Goland, as shown, my Protobuf related execution file directory: Set the environment variab...

WebPack-Dev-Server is not internal or external commands, nor is it runable or batch files.

When you just borrow Vue scaffolding, you will encounter a variety of pits, especially when you install, I also have more mistakes, and the end cause is that the previous NPM Install instruction is ma...

'MySQLD' is not internal or external commands, nor is it runable or batch files.

Error production environment When you execute the mysqld -initialize-factial command under Windows10, it is generated. wrong description wrong reason Because I just downloaded my mysql5.7 version (Exe...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top