Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Custom Visual - Not able to run

Hi all,

I am trying to run the install and run the LineDotChart by Microsoft, but without success. 

When npm install I get the following error messages: 

npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\typedarray-f3f8b705\package.json'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\type-is-7846aae4\package.json'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\typedarray-f3f8b705\LICENSE'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\type-is-7846aae4\HISTORY.md'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\typedarray-f3f8b705\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\type-is-7846aae4\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\type-is-7846aae4\LICENSE'
.
.
.
[Much more rows like this...]
.
.
.
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\tslint-286165b1\lib\rules\completed-docs\exclusionFactory.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\tslint-286165b1\lib\rules\completed-docs\exclusionFactory.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\tslint-286165b1\lib\rules\completed-docs\tagExclusion.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\tslint-286165b1\lib\rules\completed-docs\tagExclusion.js'
npm WARN tar ENOENT: no such file or directory, lstat 'C:\Users\........\otravez\node_modules\.staging\less-0a1e8cab\test\less-bom\errors'
npm WARN tar ENOENT: no such file or directory, lstat 'C:\Users\........\otravez\node_modules\.staging\less-0a1e8cab\test'
npm ERR! path C:\Users\........\AppData\Roaming\npm-cache\_cacache\content-v2\sha512\cd\02\0c3a60bedfbda90bf08254baa7434cd206263b1c7a1d53b9a941d8e265d75e93818c8f7d48ddd509ee002cf68eb95fb9a74666ba3a890e91ce9ff638df06
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall lstat
npm ERR! Error: EPERM: operation not permitted, lstat 'C:\Users\........\AppData\Roaming\npm-cache\_cacache\content-v2\sha512\cd\02\0c3a60bedfbda90bf08254baa7434cd206263b1c7a1d53b9a941d8e265d75e93818c8f7d48ddd509ee002cf68eb95fb9a74666ba3a890e91ce9ff638df06'
npm ERR!  { Error: EPERM: operation not permitted, lstat 'C:\Users\........\AppData\Roaming\npm-cache\_cacache\content-v2\sha512\cd\02\0c3a60bedfbda90bf08254baa7434cd206263b1c7a1d53b9a941d8e265d75e93818c8f7d48ddd509ee002cf68eb95fb9a74666ba3a890e91ce9ff638df06'
npm ERR!   cause:
npm ERR!    { Error: EPERM: operation not permitted, lstat 'C:\Users\........\AppData\Roaming\npm-cache\_cacache\content-v2\sha512\cd\02\0c3a60bedfbda90bf08254baa7434cd206263b1c7a1d53b9a941d8e265d75e93818c8f7d48ddd509ee002cf68eb95fb9a74666ba3a890e91ce9ff638df06'
npm ERR!      errno: -4048,
npm ERR!      code: 'EPERM',
npm ERR!      syscall: 'lstat',
npm ERR!      path: 'C:\\Users\\........\\AppData\\Roaming\\npm-cache\\_cacache\\content-v2\\sha512\\cd\\02\\0c3a60bedfbda90bf08254baa7434cd206263b1c7a1d53b9a941d8e265d75e93818c8f7d48ddd509ee002cf68eb95fb9a74666ba3a890e91ce9ff638df06' },
npm ERR!   stack: 'Error: EPERM: operation not permitted, lstat \'C:\\Users\\........\\AppData\\Roaming\\npm-cache\\_cacache\\content-v2\\sha512\\cd\\02\\0c3a60bedfbda90bf08254baa7434cd206263b1c7a1d53b9a941d8e265d75e93818c8f7d48ddd509ee002cf68eb95fb9a74666ba3a890e91ce9ff638df06\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'lstat',
npm ERR!   path: 'C:\\Users\\........\\AppData\\Roaming\\npm-cache\\_cacache\\content-v2\\sha512\\cd\\02\\0c3a60bedfbda90bf08254baa7434cd206263b1c7a1d53b9a941d8e265d75e93818c8f7d48ddd509ee002cf68eb95fb9a74666ba3a890e91ce9ff638df06',
npm ERR!   parent: 'otravez' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\........\AppData\Roaming\npm-cache\_logs\2019-05-02T06_45_04_871Z-debug.log

 

Then if I try to pbiviz start:

error UNKNOWN TypeError: Path must be a string. Received undefined
at assertPath (path.js:28:11)
at VisualPackage.join (path.js:489:7)
at VisualPackage.buildPath (C:\Users\........\AppData\Roaming\npm\node_modules\powerbi-visuals-tools\lib\VisualPackage.js:115:26)
at Promise (C:\Users\........\AppData\Roaming\npm\node_modules\powerbi-visuals-tools\lib\LessCompiler.js:53:42)
at new Promise (<anonymous>)
at Function.build (C:\Users\........\AppData\Roaming\npm\node_modules\powerbi-visuals-tools\lib\LessCompiler.js:52:16)
at _validateApiVersion.then (C:\Users\........\AppData\Roaming\npm\node_modules\powerbi-visuals-tools\lib\VisualBuilder.js:100:38)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at Function.Module.runMain (module.js:695:11)

 

If I download another custom visual from the Microsoft Git, and do the same steps as above, it works perfect. Could anyone help me with resolving this issue for the LineDotChart visual? Maybe I am doing something wrong?

1 REPLY 1
v-evelk
Employee
Employee

Hi,

 

It looks like that problem is in npm cache because I've just successfuly run "npm install" without any artifacts.

Try to clear npm cache please it should help.

 

Kind Regards,

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.