You must be logged in to post your query.
Home › Forums › Chart Support › npm ERR! code ENOENT
Tagged: npm ERR! code ENOENT
Hello, I am a new guy here. Small assistance required. Downloaded React Code Samples as per instruction. Run ‘npm start’ to run the project and got error messages: npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /home/vladimir/react-canvasjs-chart-samples/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open ‘/home/vladimir/react-canvasjs-chart-samples/package.json’ npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent
npm ERR! A complete log of this run can be found in: npm ERR! /home/vladimir/.npm/_logs/2020-02-11T02_58_33_714Z-debug.log
I didn’t have similar problem earlier with running many other projects. Any advise or comments would be highly appreciated. Regards,
Vlad
Additional notice:
I checked: package.json file exists in the directory: /home/vladimir/react-canvasjs-chart-samples/package.json’
@vlad2020,
React samples downloaded from Download Page seems to be working fine without any issue. Below are the steps for integrating CanvasJS in your react app. 1. Save canvasjs.react.js and canvasjs.min.js within source-folder of your React application 2. Import React Component to your app import CanvasJSReact from './canvasjs.react';.
import CanvasJSReact from './canvasjs.react';
Please refer to this documentation page for step-to-step tutorial on integration.
If you are still facing issue, kindly create a sample project reproducing the issue you are facing and share it with us over Google-Drive or Onedrive so that we can run it locally at our end to understand the scenario better and help you resolve.
— Vishwas R Team CanvasJS
You must be logged in to reply to this topic. Login/Register