Arya
Arya

Reputation: 41

AWS CDK installation issue

I have tried to install AWS CDK in my local system, using this command "npm install -g aws-cdk" getting installed successfully, but when I am checking version with cdk --version i am getting Microsoft JScript compilation error

Script : C:\Users\170905\AppData\Roaming\npm\node_modules\aws-cdk\bin\cdk.js
Line: 1
Char: 1
Error: Invalid Character
Code: 800A03F6
Source: Microsoft Jscript compilation error

Upvotes: 4

Views: 470

Answers (1)

Parthiban
Parthiban

Reputation: 557

set the path using below command and try.

**setx PATH "C:\Users\<username>\AppData\Roaming\npm"**

or directly navigate to this path and open cmd. It will work.

Upvotes: 2

Related Questions