change path in the sample from relative path to npm path