Featured post
- Get link
- X
- Other Apps
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
When i was working in a new nodejs project,I tried to create it from scratch.I used express js for the project.In order to do it properly i used Express application generator by excuting the command
npx express-generator
then i run the nodejs application by executing the below command on the VS Code terminal
SET DEBUG=study:* & npm start
when i run the above command,i got the error as shown below
At line:1 char:19
+ SET DEBUG=study:* & npm start
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it
as part of a string.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : AmpersandNotAllowed
So in order to fix the error -The ampersand (&) character is not allowed. The & operator is reserved for future use;wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
I executed the same command on command prompt instead of VS Code terminal.It worked without any error
Now my node js application run fine
Popular Posts
How to Check React Version Installed in Your System by Checking PACKAGE.JSON File and Executing Command from COMMAND PROMPT
- Get link
- X
- Other Apps
Execution failed for task ':react-native-reanimated:externalNativeBuildDebug' solved
- Get link
- X
- Other Apps
Error: Invalid `prisma.$executeRaw()` invocation: fixed using log: ["query"] option
- Get link
- X
- Other Apps
ERROR Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined
- Get link
- X
- Other Apps
app keeps stopping error solved in android studio emulator using logcat in react native project
- Get link
- X
- Other Apps